From 1354d17270961fff662d40f90521223f8fd0d73b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 14 Aug 2012 18:59:10 +0400 Subject: update dojo to 1.7.3 --- lib/dojo/dnd/common.js.uncompressed.js | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..ec56449ae --- /dev/null +++ b/lib/dojo/dnd/common.js.uncompressed.js @@ -0,0 +1,35 @@ +define("dojo/dnd/common", ["../main"], function(dojo) { + // module: + // dojo/dnd/common + // summary: + // TODOC + +dojo.getObject("dnd", true, dojo); + +dojo.dnd.getCopyKeyState = dojo.isCopyKey; + +dojo.dnd._uniqueId = 0; +dojo.dnd.getUniqueId = function(){ + // summary: + // returns a unique string for use with any DOM element + var id; + do{ + id = dojo._scopeName + "Unique" + (++dojo.dnd._uniqueId); + }while(dojo.byId(id)); + return id; +}; + +dojo.dnd._empty = {}; + +dojo.dnd.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 dojo.dnd; +}); -- cgit v1.2.3-54-g00ecf