X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/air/src/NativeDD.js diff --git a/air/src/NativeDD.js b/air/src/NativeDD.js deleted file mode 100644 index 402e3130..00000000 --- a/air/src/NativeDD.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Ext JS Library 0.30 - * Copyright(c) 2006-2009, Ext JS, LLC. - * licensing@extjs.com - * - * http://extjs.com/license - */ - - -/** - * @class Ext.air.DragType - * - * Drag drop type constants - * - * @singleton - */ -Ext.air.DragType = { - /** - * Constant for text data - */ - TEXT : 'text/plain', - /** - * Constant for html data - */ - HTML : 'text/html', - /** - * Constant for url data - */ - URL : 'text/uri-list', - /** - * Constant for bitmap data - */ - BITMAP : 'image/x-vnd.adobe.air.bitmap', - /** - * Constant for file list data - */ - FILES : 'application/x-vnd.adobe.air.file-list' -}; - - -// workaround for DD dataTransfer Clipboard not having hasFormat - -Ext.apply(Ext.EventObjectImpl.prototype, { - hasFormat : function(format){ - if (this.browserEvent.dataTransfer) { - for (var i = 0, len = this.browserEvent.dataTransfer.types.length; i < len; i++) { - if(this.browserEvent.dataTransfer.types[i] == format) { - return true; - } - } - } - return false; - }, - - getData : function(type){ - return this.browserEvent.dataTransfer.getData(type); - } -}); - -