]>
git.wh0rd.org - tt-rss.git/blob - lib/dojo/dnd/common.js.uncompressed.js
1 define("dojo/dnd/common", ["../_base/connect", "../_base/kernel", "../_base/lang", "../dom"],
2 function(connect
, kernel
, lang
, dom
){
7 var exports
= lang
.getObject("dojo.dnd", true);
9 // TODO: for 2.0, replace line above with this code.
16 exports
.getCopyKeyState
= connect
.isCopyKey
;
18 exports
._uniqueId
= 0;
19 exports
.getUniqueId = function(){
21 // returns a unique string for use with any DOM element
24 id
= kernel
._scopeName
+ "Unique" + (++exports
._uniqueId
);
31 exports
.isFormElement = function(/*Event*/ e
){
33 // returns true if user clicked on a form element
35 if(t
.nodeType
== 3 /*TEXT_NODE*/){
38 return " button textarea input select option ".indexOf(" " + t
.tagName
.toLowerCase() + " ") >= 0; // Boolean