forked from 0x2620/oxjs
rename Ox.UI source files, remove Ox. prefix
This commit is contained in:
parent
005d50c389
commit
91e1065aab
101 changed files with 0 additions and 0 deletions
27
source/Ox.UI/js/Core/Clipboard.js
Normal file
27
source/Ox.UI/js/Core/Clipboard.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
'use strict';
|
||||
|
||||
/*@
|
||||
Ox.Clipboard <o> Basic clipboard handler
|
||||
copy <f> Copy data to clipboard
|
||||
(data) -> <u> undefined
|
||||
paste <f> Paste data from clipboard
|
||||
() -> <*> Clipboard data
|
||||
@*/
|
||||
Ox.Clipboard = (function() {
|
||||
var clipboard = {};
|
||||
return {
|
||||
_print: function() {
|
||||
Ox.Log('Core', JSON.stringify(clipboard));
|
||||
},
|
||||
copy: function(data) {
|
||||
clipboard = data;
|
||||
Ox.Log('Core', 'copy', JSON.stringify(clipboard));
|
||||
},
|
||||
paste: function(type) {
|
||||
return type ? clipboard.type : clipboard;
|
||||
},
|
||||
type: function(type) {
|
||||
return type in clipboard;
|
||||
}
|
||||
};
|
||||
}());
|
||||
Loading…
Add table
Add a link
Reference in a new issue