diff --git a/source/Ox.UI/js/Core/Clipboard.js b/source/Ox.UI/js/Core/Clipboard.js index f613e694..79296d1c 100644 --- a/source/Ox.UI/js/Core/Clipboard.js +++ b/source/Ox.UI/js/Core/Clipboard.js @@ -44,6 +44,9 @@ Ox.Clipboard = (function() { $element && $element.triggerEvent('copy', clipboard); return clipboard.items.length; }, + items: function(type) { + return !type || type == clipboard.type ? clipboard.items.length : 0; + }, paste: function(type) { return !type || type == clipboard.type ? clipboard.items : []; $element && $element.triggerEvent('paste', clipboard);