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/lang/utils.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/lang/utils.js')
-rw-r--r-- | includes/js/dojox/lang/utils.js | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/includes/js/dojox/lang/utils.js b/includes/js/dojox/lang/utils.js deleted file mode 100644 index b7926c6..0000000 --- a/includes/js/dojox/lang/utils.js +++ /dev/null @@ -1,54 +0,0 @@ -if(!dojo._hasResource["dojox.lang.utils"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dojox.lang.utils"] = true; -dojo.provide("dojox.lang.utils"); - -(function(){ - var empty = {}, du = dojox.lang.utils; - - dojo.mixin(dojox.lang.utils, { - coerceType: function(target, source){ - switch(typeof target){ - case "number": return Number(eval("(" + source + ")")); - case "string": return String(source); - case "boolean": return Boolean(eval("(" + source + ")")); - } - return eval("(" + source + ")"); - }, - - updateWithObject: function(target, source, conv){ - // summary: updates an existing object in place with properties from an "source" object. - // target: Object: the "target" object to be updated - // source: Object: the "source" object, whose properties will be used to source the existed object. - // conv: Boolean?: force conversion to the original type - if(!source){ return target; } - for(var x in target){ - if(x in source && !(x in empty)){ - var t = target[x]; - if(t && typeof t == "object"){ - du.updateObject(t, source[x]); - }else{ - target[x] = conv ? du.coerceType(t, source[x]) : dojo.clone(source[x]); - } - } - } - return target; // Object - }, - - updateWithPattern: function(target, source, pattern, conv){ - // summary: updates an existing object in place with properties from an "source" object. - // target: Object: the "target" object to be updated - // source: Object: the "source" object, whose properties will be used to source the existed object. - // pattern: Array: an array of properties to be copied - // conv: Boolean?: force conversion to the original type - if(!source || !pattern){ return target; } - for(var x in pattern){ - if(x in source && !(x in empty)){ - target[x] = conv ? du.coerceType(pattern[x], source[x]) : dojo.clone(source[x]); - } - } - return target; // Object - } - }); -})(); - -} |