diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-14 15:39:19 +0000 |
commit | 1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch) | |
tree | 3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/dtl/Context.js | |
parent | 104d59099e048688c4dbac37d72137006e396558 (diff) | |
download | semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2 |
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/dtl/Context.js')
-rw-r--r-- | includes/js/dojox/dtl/Context.js | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/includes/js/dojox/dtl/Context.js b/includes/js/dojox/dtl/Context.js deleted file mode 100644 index f608506..0000000 --- a/includes/js/dojox/dtl/Context.js +++ /dev/null @@ -1,87 +0,0 @@ -if(!dojo._hasResource["dojox.dtl.Context"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dojox.dtl.Context"] = true; -dojo.provide("dojox.dtl.Context"); -dojo.require("dojox.dtl._base"); - -dojox.dtl.Context = dojo.extend(function(dict){ - this._this = {}; - dojox.dtl._Context.call(this, dict); -}, dojox.dtl._Context.prototype, -{ - extend: function(/*dojox.dtl.Context|Object*/ obj){ - // summary: Returns a clone of this context object, with the items from the - // passed objecct mixed in. - var context = new dojox.dtl.Context(); - var keys = this.getKeys(); - var i, key; - for(i = 0; key = keys[i]; i++){ - if(typeof obj[key] != "undefined"){ - context[key] = obj[key]; - }else{ - context[key] = this[key]; - } - } - - if(obj instanceof dojox.dtl.Context){ - keys = obj.getKeys(); - }else if(typeof obj == "object"){ - keys = []; - for(key in obj){ - keys.push(key); - } - } - - for(i = 0; key = keys[i]; i++){ - context[key] = obj[key]; - } - - return context; - }, - filter: function(/*dojox.dtl.Context|Object|String...*/ filter){ - // summary: Returns a clone of this context, only containing the items - // defined in the filter. - var context = new dojox.dtl.Context(); - var keys = []; - var i, arg; - if(filter instanceof dojox.dtl.Context){ - keys = filter.getKeys(); - }else if(typeof filter == "object"){ - for(var key in filter){ - keys.push(key); - } - }else{ - for(i = 0; arg = arguments[i]; i++){ - if(typeof arg == "string"){ - keys.push(arg); - } - } - } - - for(i = 0, key; key = keys[i]; i++){ - context[key] = this[key]; - } - - return context; - }, - setThis: function(/*Object*/ _this){ - this._this = _this; - }, - getThis: function(){ - return this._this; - }, - hasKey: function(key){ - if(typeof this[key] != "undefined"){ - return true; - } - - for(var i = 0, dict; dict = this._dicts[i]; i++){ - if(typeof dict[key] != "undefined"){ - return true; - } - } - - return false; - } -}); - -} |