1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-18 12:51:29 +00:00

upgrade dojo to 1.8.3 (refs #570)

This commit is contained in:
Andrew Dolgov
2013-03-18 10:26:24 +04:00
parent 9a2885da17
commit f0cfe83e37
1568 changed files with 159866 additions and 2781 deletions

View File

@@ -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;
});