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

upgrade Dojo to 1.6.1

This commit is contained in:
Andrew Dolgov
2011-11-08 20:40:44 +04:00
parent 870a70e109
commit 81bea17aef
680 changed files with 51915 additions and 74107 deletions

View File

@@ -1,5 +1,5 @@
/*
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
@@ -20,11 +20,7 @@ dojo._hasResource["dojo._base.query"] = true;
* Finally, dojo.provide/require added.
*/
//This file gets copied to dojo/_base/query.js, so set the provide accordingly.
if(typeof dojo != "undefined"){
dojo.provide("dojo._base.query");
dojo.require("dojo._base.NodeList");
var startDojoMappings= function(dojo) {
//Start Dojo mappings.
dojo.query = function(/*String*/ query, /*String|DOMNode?*/ root, /*Function?*/listCtor){
listCtor = listCtor || dojo.NodeList;
@@ -45,16 +41,16 @@ if(typeof dojo != "undefined"){
}
return dojo.Sizzle(query, root, new listCtor());
}
};
dojo._filterQueryResult = function(nodeList, simpleFilter){
return dojo.Sizzle.filter(simpleFilter, nodeList);
}
}
};
};
//Main Sizzle code follows...
//ns argument, added for dojo, used at the end of the file.
;(function(ns){
var defineSizzle= function(ns){
var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|[^[\]]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g,
done = 0,
@@ -862,8 +858,20 @@ var contains = document.compareDocumentPosition ? function(a, b){
// EXPOSE
(ns || window).Sizzle = Sizzle;
ns.Sizzle = Sizzle;
})(typeof dojo == "undefined" ? null : dojo);
};
if (this["dojo"]) {
var defined= 0;
if (!defined) {
// must be in a built version that stripped out the define above
dojo.provide("dojo._base.query");
dojo.require("dojo._base.NodeList");
defineSizzle(dojo);
} // else must be in a source version (or a build that likes define)
} else {
defineSizzle(window);
}
}