25 lines
377 B
JavaScript
25 lines
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;
|
||
|
|
};
|