From f0cfe83e3725f9a3928da97a6e3085e79cb25309 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 18 Mar 2013 10:26:24 +0400 Subject: upgrade dojo to 1.8.3 (refs #570) --- lib/dojo/dnd/common.js.uncompressed.js | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 lib/dojo/dnd/common.js.uncompressed.js (limited to 'lib/dojo/dnd/common.js.uncompressed.js') diff --git a/lib/dojo/dnd/common.js.uncompressed.js b/lib/dojo/dnd/common.js.uncompressed.js new file mode 100644 index 000000000..d59e2ea57 --- /dev/null +++ b/lib/dojo/dnd/common.js.uncompressed.js @@ -0,0 +1,42 @@ +define("dojo/dnd/common", ["../_base/connect", "../_base/kernel", "../_base/lang", "../dom"], + function(connect, kernel, lang, dom){ + +// module: +// dojo/dnd/common + +var exports = lang.getObject("dojo.dnd", true); +/*===== +// TODO: for 2.0, replace line above with this code. +var exports = { + // summary: + // TODOC +}; +=====*/ + +exports.getCopyKeyState = connect.isCopyKey; + +exports._uniqueId = 0; +exports.getUniqueId = function(){ + // summary: + // returns a unique string for use with any DOM element + var id; + do{ + id = kernel._scopeName + "Unique" + (++exports._uniqueId); + }while(dom.byId(id)); + return id; +}; + +exports._empty = {}; + +exports.isFormElement = function(/*Event*/ e){ + // summary: + // returns true if user clicked on a form element + var t = e.target; + if(t.nodeType == 3 /*TEXT_NODE*/){ + t = t.parentNode; + } + return " button textarea input select option ".indexOf(" " + t.tagName.toLowerCase() + " ") >= 0; // Boolean +}; + +return exports; +}); -- cgit v1.2.3-54-g00ecf