diagram-js
Version:
A toolbox for displaying and modifying diagrams on the web
25 lines (18 loc) • 377 B
JavaScript
/**
* 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;
};