1
0
Fork 0
forked from 0x2620/oxjs

rename Ox.UI source files, remove Ox. prefix

This commit is contained in:
j 2012-05-28 19:44:12 +00:00
commit 91e1065aab
101 changed files with 0 additions and 0 deletions

View 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;
}
};
}());