all files / diagram-js/lib/features/clipboard/ Clipboard.js

70% Statements 7/10
100% Branches 0/0
80% Functions 4/5
70% Lines 7/10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25            25×     28×                   25×  
/**
 * A clip board stub
 */
export default function Clipboard() {}
 
 
Clipboard.prototype.get = function() {
  return this._data;
};
 
Clipboard.prototype.set = function(data) {
  this._data = data;
};
 
Clipboard.prototype.clear = function() {
  var data = this._data;
 
  delete this._data;
 
  return data;
};
 
Clipboard.prototype.isEmpty = function() {
  return !this._data;
};