http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/_loader/hostenv_ff_ext.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/_loader/hostenv_ff_ext.js b/components/camel-web/src/main/webapp/js/dojo/_base/_loader/hostenv_ff_ext.js deleted file mode 100644 index 304f78a..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/_loader/hostenv_ff_ext.js +++ /dev/null @@ -1,180 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(typeof window!="undefined"){ -dojo.isBrowser=true; -dojo._name="browser"; -(function(){ -var d=dojo; -d.baseUrl=d.config.baseUrl; -var n=navigator; -var _3=n.userAgent; -var _4=n.appVersion; -var tv=parseFloat(_4); -d.isMozilla=d.isMoz=tv; -if(d.isMoz){ -d.isFF=parseFloat(_3.split("Firefox/")[1])||undefined; -} -var cm=document.compatMode; -d.isQuirks=cm=="BackCompat"||cm=="QuirksMode"; -d.locale=dojo.config.locale||n.language.toLowerCase(); -d._xhrObj=function(){ -return new XMLHttpRequest(); -}; -var _7=d._loadUri; -d._loadUri=function(_8,cb){ -var _a=["file:","chrome:","resource:"].some(function(_b){ -return String(_8).indexOf(_b)==0; -}); -if(_a){ -var l=Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader); -var _d=l.loadSubScript(_8,d.global); -if(cb){ -cb(_d); -} -return true; -}else{ -return _7.apply(d,arguments); -} -}; -d._isDocumentOk=function(_e){ -var _f=_e.status||0; -return (_f>=200&&_f<300)||_f==304||_f==1223||(!_f&&(location.protocol=="file:"||location.protocol=="chrome:")); -}; -var _10=false; -d._getText=function(uri,_12){ -var _13=this._xhrObj(); -if(!_10&&dojo._Url){ -uri=(new dojo._Url(uri)).toString(); -} -if(d.config.cacheBust){ -uri+=""; -uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,""); -} -var _14=["file:","chrome:","resource:"].some(function(_15){ -return String(uri).indexOf(_15)==0; -}); -if(_14){ -var _16=Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); -var _17=Components.classes["@mozilla.org/scriptableinputstream;1"].getService(Components.interfaces.nsIScriptableInputStream); -var _18=_16.newChannel(uri,null,null); -var _19=_18.open(); -_17.init(_19); -var str=_17.read(_19.available()); -_17.close(); -_19.close(); -return str; -}else{ -_13.open("GET",uri,false); -try{ -_13.send(null); -if(!d._isDocumentOk(_13)){ -var err=Error("Unable to load "+uri+" status:"+_13.status); -err.status=_13.status; -err.responseText=_13.responseText; -throw err; -} -} -catch(e){ -if(_12){ -return null; -} -throw e; -} -return _13.responseText; -} -}; -d._windowUnloaders=[]; -d.windowUnloaded=function(){ -var mll=this._windowUnloaders; -while(mll.length){ -(mll.pop())(); -} -}; -d.addOnWindowUnload=function(obj,_1e){ -d._onto(d._windowUnloaders,obj,_1e); -}; -var _1f=[]; -var _20=null; -dojo._defaultContext=[window,document]; -dojo.pushContext=function(g,d){ -var old=[dojo.global,dojo.doc]; -_1f.push(old); -var n; -if(!g&&!d){ -n=dojo._defaultContext; -}else{ -n=[g,d]; -if(!d&&dojo.isString(g)){ -var t=document.getElementById(g); -if(t.contentDocument){ -n=[t.contentWindow,t.contentDocument]; -} -} -} -_20=n; -dojo.setContext.apply(dojo,n); -return old; -}; -dojo.popContext=function(){ -var oc=_20; -if(!_1f.length){ -return oc; -} -dojo.setContext.apply(dojo,_1f.pop()); -return oc; -}; -dojo._inContext=function(g,d,f){ -var a=dojo._toArray(arguments); -f=a.pop(); -if(a.length==1){ -d=null; -} -dojo.pushContext(g,d); -var r=f(); -dojo.popContext(); -return r; -}; -})(); -dojo._initFired=false; -dojo._loadInit=function(e){ -dojo._initFired=true; -var _2d=(e&&e.type)?e.type.toLowerCase():"load"; -if(arguments.callee.initialized||(_2d!="domcontentloaded"&&_2d!="load")){ -return; -} -arguments.callee.initialized=true; -if(dojo._inFlightCount==0){ -dojo._modulesLoaded(); -} -}; -dojo._fakeLoadInit=function(){ -dojo._loadInit({type:"load"}); -}; -if(!dojo.config.afterOnLoad){ -window.addEventListener("DOMContentLoaded",function(e){ -dojo._loadInit(e); -},false); -} -} -(function(){ -var mp=dojo.config["modulePaths"]; -if(mp){ -for(var _30 in mp){ -dojo.registerModulePath(_30,mp[_30]); -} -} -})(); -if(dojo.config.isDebug){ -console.log=function(m){ -var s=Components.classes["@mozilla.org/consoleservice;1"].getService(Components.interfaces.nsIConsoleService); -s.logStringMessage(m); -}; -console.debug=function(){ - -}; -}
http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/_loader/hostenv_rhino.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/_loader/hostenv_rhino.js b/components/camel-web/src/main/webapp/js/dojo/_base/_loader/hostenv_rhino.js deleted file mode 100644 index f156098..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/_loader/hostenv_rhino.js +++ /dev/null @@ -1,163 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(dojo.config["baseUrl"]){ -dojo.baseUrl=dojo.config["baseUrl"]; -}else{ -dojo.baseUrl="./"; -} -dojo.locale=dojo.locale||String(java.util.Locale.getDefault().toString().replace("_","-").toLowerCase()); -dojo._name="rhino"; -dojo.isRhino=true; -if(typeof print=="function"){ -console.debug=print; -} -if(!("byId" in dojo)){ -dojo.byId=function(id,_2){ -if(id&&(typeof id=="string"||id instanceof String)){ -if(!_2){ -_2=document; -} -return _2.getElementById(id); -} -return id; -}; -} -dojo._loadUri=function(_3,cb){ -try{ -var _5=(new java.io.File(_3)).exists(); -if(!_5){ -try{ -var _6=(new java.net.URL(_3)).openStream(); -_6.close(); -} -catch(e){ -return false; -} -} -if(cb){ -var _7=(_5?readText:readUri)(_3,"UTF-8"); -if(!eval("'â'").length){ -_7=String(_7).replace(/[\u200E\u200F\u202A-\u202E]/g,function(_8){ -return "\\u"+_8.charCodeAt(0).toString(16); -}); -} -cb(eval("("+_7+")")); -}else{ -load(_3); -} -return true; -} -catch(e){ - -return false; -} -}; -dojo.exit=function(_9){ -quit(_9); -}; -dojo._rhinoCurrentScriptViaJava=function(_a){ -var _b=Packages.org.mozilla.javascript.Context.getCurrentContext().getOptimizationLevel(); -var _c=new java.io.CharArrayWriter(); -var pw=new java.io.PrintWriter(_c); -var _e=new java.lang.Exception(); -var s=_c.toString(); -var _10=s.match(/[^\(]*\.js\)/gi); -if(!_10){ -throw Error("cannot parse printStackTrace output: "+s); -} -var _11=((typeof _a!="undefined")&&(_a))?_10[_a+1]:_10[_10.length-1]; -_11=_10[3]; -if(!_11){ -_11=_10[1]; -} -if(!_11){ -throw Error("could not find js file in printStackTrace output: "+s); -} -return _11; -}; -function readText(_12,_13){ -_13=_13||"utf-8"; -var jf=new java.io.File(_12); -var is=new java.io.FileInputStream(jf); -return dj_readInputStream(is,_13); -}; -function readUri(uri,_17){ -var _18=(new java.net.URL(uri)).openConnection(); -_17=_17||_18.getContentEncoding()||"utf-8"; -var is=_18.getInputStream(); -return dj_readInputStream(is,_17); -}; -function dj_readInputStream(is,_1b){ -var _1c=new java.io.BufferedReader(new java.io.InputStreamReader(is,_1b)); -try{ -var sb=new java.lang.StringBuffer(); -var _1e=""; -while((_1e=_1c.readLine())!==null){ -sb.append(_1e); -sb.append(java.lang.System.getProperty("line.separator")); -} -return sb.toString(); -} -finally{ -_1c.close(); -} -}; -if((!dojo.config.libraryScriptUri)||(!dojo.config.libraryScriptUri.length)){ -try{ -dojo.config.libraryScriptUri=dojo._rhinoCurrentScriptViaJava(1); -} -catch(e){ -if(dojo.config["isDebug"]){ -print("\n"); -print("we have no idea where Dojo is located."); -print("Please try loading rhino in a non-interpreted mode or set a"); -print("\n\tdjConfig.libraryScriptUri\n"); -print("Setting the dojo path to './'"); -print("This is probably wrong!"); -print("\n"); -print("Dojo will try to load anyway"); -} -dojo.config.libraryScriptUri="./"; -} -} -dojo.doc=typeof document!="undefined"?document:null; -dojo.body=function(){ -return document.body; -}; -if(typeof setTimeout=="undefined"||typeof clearTimeout=="undefined"){ -dojo._timeouts=[]; -function clearTimeout(idx){ -if(!dojo._timeouts[idx]){ -return; -} -dojo._timeouts[idx].stop(); -}; -function setTimeout(_20,_21){ -var def={sleepTime:_21,hasSlept:false,run:function(){ -if(!this.hasSlept){ -this.hasSlept=true; -java.lang.Thread.currentThread().sleep(this.sleepTime); -} -try{ -_20(); -} -catch(e){ - -} -}}; -var _23=new java.lang.Runnable(def); -var _24=new java.lang.Thread(_23); -_24.start(); -return dojo._timeouts.push(_24)-1; -}; -} -if(dojo.config["modulePaths"]){ -for(var param in dojo.config["modulePaths"]){ -dojo.registerModulePath(param,dojo.config["modulePaths"][param]); -} -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/_loader/hostenv_spidermonkey.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/_loader/hostenv_spidermonkey.js b/components/camel-web/src/main/webapp/js/dojo/_base/_loader/hostenv_spidermonkey.js deleted file mode 100644 index d35a6fa..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/_loader/hostenv_spidermonkey.js +++ /dev/null @@ -1,50 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(dojo.config["baseUrl"]){ -dojo.baseUrl=dojo.config["baseUrl"]; -}else{ -dojo.baseUrl="./"; -} -dojo._name="spidermonkey"; -dojo.isSpidermonkey=true; -dojo.exit=function(_1){ -quit(_1); -}; -if(typeof print=="function"){ -console.debug=print; -} -if(typeof line2pc=="undefined"){ -throw new Error("attempt to use SpiderMonkey host environment when no 'line2pc' global"); -} -dojo._spidermonkeyCurrentFile=function(_2){ -var s=""; -try{ -throw Error("whatever"); -} -catch(e){ -s=e.stack; -} -var _4=s.match(/[^@]*\.js/gi); -if(!_4){ -throw Error("could not parse stack string: '"+s+"'"); -} -var _5=(typeof _2!="undefined"&&_2)?_4[_2+1]:_4[_4.length-1]; -if(!_5){ -throw Error("could not find file name in stack string '"+s+"'"); -} -return _5; -}; -dojo._loadUri=function(_6){ -var ok=load(_6); -return 1; -}; -if(dojo.config["modulePaths"]){ -for(var param in dojo.config["modulePaths"]){ -dojo.registerModulePath(param,dojo.config["modulePaths"][param]); -} -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/_loader/loader.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/_loader/loader.js b/components/camel-web/src/main/webapp/js/dojo/_base/_loader/loader.js deleted file mode 100644 index b2613fa..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/_loader/loader.js +++ /dev/null @@ -1,301 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(!dojo._hasResource["dojo.foo"]){ -dojo._hasResource["dojo.foo"]=true; -(function(){ -var d=dojo; -d.mixin(d,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(_2){ -var mp=this._modulePrefixes; -return !!(mp[_2]&&mp[_2].value); -},_getModulePrefix:function(_4){ -var mp=this._modulePrefixes; -if(this._moduleHasPrefix(_4)){ -return mp[_4].value; -} -return _4; -},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false}); -dojo._loadPath=function(_6,_7,cb){ -var _9=((_6.charAt(0)=="/"||_6.match(/^\w+:/))?"":this.baseUrl)+_6; -try{ -return !_7?this._loadUri(_9,cb):this._loadUriAndCheck(_9,_7,cb); -} -catch(e){ -console.error(e); -return false; -} -}; -dojo._loadUri=function(_a,cb){ -if(this._loadedUrls[_a]){ -return true; -} -var _c=this._getText(_a,true); -if(!_c){ -return false; -} -this._loadedUrls[_a]=true; -this._loadedUrls.push(_a); -if(cb){ -_c="("+_c+")"; -}else{ -_c=this._scopePrefix+_c+this._scopeSuffix; -} -if(d.isMoz){ -_c+="\r\n//@ sourceURL="+_a; -} -var _d=d["eval"](_c); -if(cb){ -cb(_d); -} -return true; -}; -dojo._loadUriAndCheck=function(_e,_f,cb){ -var ok=false; -try{ -ok=this._loadUri(_e,cb); -} -catch(e){ -console.error("failed loading "+_e+" with error: "+e); -} -return !!(ok&&this._loadedModules[_f]); -}; -dojo.loaded=function(){ -this._loadNotifying=true; -this._postLoad=true; -var mll=d._loaders; -this._loaders=[]; -for(var x=0;x<mll.length;x++){ -mll[x](); -} -this._loadNotifying=false; -if(d._postLoad&&d._inFlightCount==0&&mll.length){ -d._callLoaded(); -} -}; -dojo.unloaded=function(){ -var mll=d._unloaders; -while(mll.length){ -(mll.pop())(); -} -}; -d._onto=function(arr,obj,fn){ -if(!fn){ -arr.push(obj); -}else{ -if(fn){ -var _18=(typeof fn=="string")?obj[fn]:fn; -arr.push(function(){ -_18.call(obj); -}); -} -} -}; -dojo.addOnLoad=function(obj,_1a){ -d._onto(d._loaders,obj,_1a); -if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){ -d._callLoaded(); -} -}; -var dca=d.config.addOnLoad; -if(dca){ -d.addOnLoad[(dca instanceof Array?"apply":"call")](d,dca); -} -dojo._modulesLoaded=function(){ -if(d._postLoad){ -return; -} -if(d._inFlightCount>0){ -console.warn("files still in flight!"); -return; -} -d._callLoaded(); -}; -dojo._callLoaded=function(){ -if(typeof setTimeout=="object"||(dojo.config.useXDomain&&d.isOpera)){ -if(dojo.isAIR){ -setTimeout(function(){ -dojo.loaded(); -},0); -}else{ -setTimeout(dojo._scopeName+".loaded();",0); -} -}else{ -d.loaded(); -} -}; -dojo._getModuleSymbols=function(_1c){ -var _1d=_1c.split("."); -for(var i=_1d.length;i>0;i--){ -var _1f=_1d.slice(0,i).join("."); -if((i==1)&&!this._moduleHasPrefix(_1f)){ -_1d[0]="../"+_1d[0]; -}else{ -var _20=this._getModulePrefix(_1f); -if(_20!=_1f){ -_1d.splice(0,i,_20); -break; -} -} -} -return _1d; -}; -dojo._global_omit_module_check=false; -dojo.loadInit=function(_21){ -_21(); -}; -dojo._loadModule=dojo.require=function(_22,_23){ -_23=this._global_omit_module_check||_23; -var _24=this._loadedModules[_22]; -if(_24){ -return _24; -} -var _25=this._getModuleSymbols(_22).join("/")+".js"; -var _26=(!_23)?_22:null; -var ok=this._loadPath(_25,_26); -if(!ok&&!_23){ -throw new Error("Could not load '"+_22+"'; last tried '"+_25+"'"); -} -if(!_23&&!this._isXDomain){ -_24=this._loadedModules[_22]; -if(!_24){ -throw new Error("symbol '"+_22+"' is not defined after loading '"+_25+"'"); -} -} -return _24; -}; -dojo.provide=function(_28){ -_28=_28+""; -return (d._loadedModules[_28]=d.getObject(_28,true)); -}; -dojo.platformRequire=function(_29){ -var _2a=_29.common||[]; -var _2b=_2a.concat(_29[d._name]||_29["default"]||[]); -for(var x=0;x<_2b.length;x++){ -var _2d=_2b[x]; -if(_2d.constructor==Array){ -d._loadModule.apply(d,_2d); -}else{ -d._loadModule(_2d); -} -} -}; -dojo.requireIf=function(_2e,_2f){ -if(_2e===true){ -var _30=[]; -for(var i=1;i<arguments.length;i++){ -_30.push(arguments[i]); -} -d.require.apply(d,_30); -} -}; -dojo.requireAfterIf=d.requireIf; -dojo.registerModulePath=function(_32,_33){ -d._modulePrefixes[_32]={name:_32,value:_33}; -}; -dojo.requireLocalization=function(_34,_35,_36,_37){ -d.require("dojo.i18n"); -d.i18n._requireLocalization.apply(d.hostenv,arguments); -}; -var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"); -var ire=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"); -dojo._Url=function(){ -var n=null; -var _a=arguments; -var uri=[_a[0]]; -for(var i=1;i<_a.length;i++){ -if(!_a[i]){ -continue; -} -var _3e=new d._Url(_a[i]+""); -var _3f=new d._Url(uri[0]+""); -if(_3e.path==""&&!_3e.scheme&&!_3e.authority&&!_3e.query){ -if(_3e.fragment!=n){ -_3f.fragment=_3e.fragment; -} -_3e=_3f; -}else{ -if(!_3e.scheme){ -_3e.scheme=_3f.scheme; -if(!_3e.authority){ -_3e.authority=_3f.authority; -if(_3e.path.charAt(0)!="/"){ -var _40=_3f.path.substring(0,_3f.path.lastIndexOf("/")+1)+_3e.path; -var _41=_40.split("/"); -for(var j=0;j<_41.length;j++){ -if(_41[j]=="."){ -if(j==_41.length-1){ -_41[j]=""; -}else{ -_41.splice(j,1); -j--; -} -}else{ -if(j>0&&!(j==1&&_41[0]=="")&&_41[j]==".."&&_41[j-1]!=".."){ -if(j==(_41.length-1)){ -_41.splice(j,1); -_41[j-1]=""; -}else{ -_41.splice(j-1,2); -j-=2; -} -} -} -} -_3e.path=_41.join("/"); -} -} -} -} -uri=[]; -if(_3e.scheme){ -uri.push(_3e.scheme,":"); -} -if(_3e.authority){ -uri.push("//",_3e.authority); -} -uri.push(_3e.path); -if(_3e.query){ -uri.push("?",_3e.query); -} -if(_3e.fragment){ -uri.push("#",_3e.fragment); -} -} -this.uri=uri.join(""); -var r=this.uri.match(ore); -this.scheme=r[2]||(r[1]?"":n); -this.authority=r[4]||(r[3]?"":n); -this.path=r[5]; -this.query=r[7]||(r[6]?"":n); -this.fragment=r[9]||(r[8]?"":n); -if(this.authority!=n){ -r=this.authority.match(ire); -this.user=r[3]||n; -this.password=r[4]||n; -this.host=r[6]||r[7]; -this.port=r[9]||n; -} -}; -dojo._Url.prototype.toString=function(){ -return this.uri; -}; -dojo.moduleUrl=function(_44,url){ -var loc=d._getModuleSymbols(_44).join("/"); -if(!loc){ -return null; -} -if(loc.lastIndexOf("/")!=loc.length-1){ -loc+="/"; -} -var _47=loc.indexOf(":"); -if(loc.charAt(0)!="/"&&(_47==-1||_47>loc.indexOf("/"))){ -loc=d.baseUrl+loc; -} -return new d._Url(loc,url); -}; -})(); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/_loader/loader_debug.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/_loader/loader_debug.js b/components/camel-web/src/main/webapp/js/dojo/_base/_loader/loader_debug.js deleted file mode 100644 index cddb73a..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/_loader/loader_debug.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(!dojo._hasResource["dojo._base._loader.loader_debug"]){ -dojo._hasResource["dojo._base._loader.loader_debug"]=true; -dojo.provide("dojo._base._loader.loader_debug"); -dojo.nonDebugProvide=dojo.provide; -dojo.provide=function(_1){ -var _2=dojo["_xdDebugQueue"]; -if(_2&&_2.length>0&&_1==_2["currentResourceName"]){ -if(dojo.isAIR){ -window.setTimeout(function(){ -dojo._xdDebugFileLoaded(_1); -},1); -}else{ -window.setTimeout(dojo._scopeName+"._xdDebugFileLoaded('"+_1+"')",1); -} -} -return dojo.nonDebugProvide.apply(dojo,arguments); -}; -dojo._xdDebugFileLoaded=function(_3){ -if(!this._xdDebugScopeChecked){ -if(dojo._scopeName!="dojo"){ -window.dojo=window[dojo.config.scopeMap[0][1]]; -window.dijit=window[dojo.config.scopeMap[1][1]]; -window.dojox=window[dojo.config.scopeMap[2][1]]; -} -this._xdDebugScopeChecked=true; -} -var _4=this._xdDebugQueue; -if(_3&&_3==_4.currentResourceName){ -_4.shift(); -} -if(_4.length==0){ -dojo._xdWatchInFlight(); -} -if(_4.length==0){ -_4.currentResourceName=null; -for(var _5 in this._xdInFlight){ -if(this._xdInFlight[_5]===true){ -return; -} -} -this._xdNotifyLoaded(); -}else{ -if(_3==_4.currentResourceName){ -_4.currentResourceName=_4[0].resourceName; -var _6=document.createElement("script"); -_6.type="text/javascript"; -_6.src=_4[0].resourcePath; -document.getElementsByTagName("head")[0].appendChild(_6); -} -} -}; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/_loader/loader_xd.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/_loader/loader_xd.js b/components/camel-web/src/main/webapp/js/dojo/_base/_loader/loader_xd.js deleted file mode 100644 index c3ff791..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/_loader/loader_xd.js +++ /dev/null @@ -1,456 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(!dojo._hasResource["dojo._base._loader.loader_xd"]){ -dojo._hasResource["dojo._base._loader.loader_xd"]=true; -dojo.provide("dojo._base._loader.loader_xd"); -dojo._xdReset=function(){ -this._isXDomain=dojo.config.useXDomain||false; -this._xdTimer=0; -this._xdInFlight={}; -this._xdOrderedReqs=[]; -this._xdDepMap={}; -this._xdContents=[]; -this._xdDefList=[]; -}; -dojo._xdReset(); -dojo._xdCreateResource=function(_1,_2,_3){ -var _4=_1.replace(/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,""); -var _5=[]; -var _6=/dojo.(require|requireIf|provide|requireAfterIf|platformRequire|requireLocalization)\s*\(([\w\W]*?)\)/mg; -var _7; -while((_7=_6.exec(_4))!=null){ -if(_7[1]=="requireLocalization"){ -eval(_7[0]); -}else{ -_5.push("\""+_7[1]+"\", "+_7[2]); -} -} -var _8=[]; -_8.push(dojo._scopeName+"._xdResourceLoaded(function("+dojo._scopePrefixArgs+"){\n"); -var _9=dojo._xdExtractLoadInits(_1); -if(_9){ -_1=_9[0]; -for(var i=1;i<_9.length;i++){ -_8.push(_9[i]+";\n"); -} -} -_8.push("return {"); -if(_5.length>0){ -_8.push("depends: ["); -for(i=0;i<_5.length;i++){ -if(i>0){ -_8.push(",\n"); -} -_8.push("["+_5[i]+"]"); -} -_8.push("],"); -} -_8.push("\ndefineResource: function("+dojo._scopePrefixArgs+"){"); -if(!dojo.config["debugAtAllCosts"]||_2=="dojo._base._loader.loader_debug"){ -_8.push(_1); -} -_8.push("\n}, resourceName: '"+_2+"', resourcePath: '"+_3+"'};});"); -return _8.join(""); -}; -dojo._xdExtractLoadInits=function(_b){ -var _c=/dojo.loadInit\s*\(/g; -_c.lastIndex=0; -var _d=/[\(\)]/g; -_d.lastIndex=0; -var _e=[]; -var _f; -while((_f=_c.exec(_b))){ -_d.lastIndex=_c.lastIndex; -var _10=1; -var _11; -while((_11=_d.exec(_b))){ -if(_11[0]==")"){ -_10-=1; -}else{ -_10+=1; -} -if(_10==0){ -break; -} -} -if(_10!=0){ -throw "unmatched paren around character "+_d.lastIndex+" in: "+_b; -} -var _12=_c.lastIndex-_f[0].length; -_e.push(_b.substring(_12,_d.lastIndex)); -var _13=_d.lastIndex-_12; -_b=_b.substring(0,_12)+_b.substring(_d.lastIndex,_b.length); -_c.lastIndex=_d.lastIndex-_13; -_c.lastIndex=_d.lastIndex; -} -if(_e.length>0){ -_e.unshift(_b); -} -return (_e.length?_e:null); -}; -dojo._xdIsXDomainPath=function(_14){ -var _15=_14.indexOf(":"); -var _16=_14.indexOf("/"); -if(_15>0&&_15<_16){ -return true; -}else{ -var url=this.baseUrl; -_15=url.indexOf(":"); -_16=url.indexOf("/"); -if(_15>0&&_15<_16&&(!location.host||url.indexOf("http://"+location.host)!=0)){ -return true; -} -} -return false; -}; -dojo._loadPath=function(_18,_19,cb){ -var _1b=this._xdIsXDomainPath(_18); -this._isXDomain|=_1b; -var uri=((_18.charAt(0)=="/"||_18.match(/^\w+:/))?"":this.baseUrl)+_18; -try{ -return ((!_19||this._isXDomain)?this._loadUri(uri,cb,_1b,_19):this._loadUriAndCheck(uri,_19,cb)); -} -catch(e){ -console.error(e); -return false; -} -}; -dojo._loadUri=function(uri,cb,_1f,_20){ -if(this._loadedUrls[uri]){ -return 1; -} -if(this._isXDomain&&_20&&_20!="dojo.i18n"){ -this._xdOrderedReqs.push(_20); -if(_1f||uri.indexOf("/nls/")==-1){ -this._xdInFlight[_20]=true; -this._inFlightCount++; -} -if(!this._xdTimer){ -if(dojo.isAIR){ -this._xdTimer=setInterval(function(){ -dojo._xdWatchInFlight(); -},100); -}else{ -this._xdTimer=setInterval(dojo._scopeName+"._xdWatchInFlight();",100); -} -} -this._xdStartTime=(new Date()).getTime(); -} -if(_1f){ -var _21=uri.lastIndexOf("."); -if(_21<=0){ -_21=uri.length-1; -} -var _22=uri.substring(0,_21)+".xd"; -if(_21!=uri.length-1){ -_22+=uri.substring(_21,uri.length); -} -if(dojo.isAIR){ -_22=_22.replace("app:/","/"); -} -var _23=document.createElement("script"); -_23.type="text/javascript"; -_23.src=_22; -if(!this.headElement){ -this._headElement=document.getElementsByTagName("head")[0]; -if(!this._headElement){ -this._headElement=document.getElementsByTagName("html")[0]; -} -} -this._headElement.appendChild(_23); -}else{ -var _24=this._getText(uri,null,true); -if(_24==null){ -return 0; -} -if(this._isXDomain&&uri.indexOf("/nls/")==-1&&_20!="dojo.i18n"){ -var res=this._xdCreateResource(_24,_20,uri); -dojo.eval(res); -}else{ -if(cb){ -_24="("+_24+")"; -}else{ -_24=this._scopePrefix+_24+this._scopeSuffix; -} -var _26=dojo["eval"](_24+"\r\n//@ sourceURL="+uri); -if(cb){ -cb(_26); -} -} -} -this._loadedUrls[uri]=true; -this._loadedUrls.push(uri); -return true; -}; -dojo._xdResourceLoaded=function(res){ -res=res.apply(dojo.global,dojo._scopeArgs); -var _28=res.depends; -var _29=null; -var _2a=null; -var _2b=[]; -if(_28&&_28.length>0){ -var dep=null; -var _2d=0; -var _2e=false; -for(var i=0;i<_28.length;i++){ -dep=_28[i]; -if(dep[0]=="provide"){ -_2b.push(dep[1]); -}else{ -if(!_29){ -_29=[]; -} -if(!_2a){ -_2a=[]; -} -var _30=this._xdUnpackDependency(dep); -if(_30.requires){ -_29=_29.concat(_30.requires); -} -if(_30.requiresAfter){ -_2a=_2a.concat(_30.requiresAfter); -} -} -var _31=dep[0]; -var _32=_31.split("."); -if(_32.length==2){ -dojo[_32[0]][_32[1]].apply(dojo[_32[0]],dep.slice(1)); -}else{ -dojo[_31].apply(dojo,dep.slice(1)); -} -} -if(_2b.length==1&&_2b[0]=="dojo._base._loader.loader_debug"){ -res.defineResource(dojo); -}else{ -var _33=this._xdContents.push({content:res.defineResource,resourceName:res["resourceName"],resourcePath:res["resourcePath"],isDefined:false})-1; -for(i=0;i<_2b.length;i++){ -this._xdDepMap[_2b[i]]={requires:_29,requiresAfter:_2a,contentIndex:_33}; -} -} -for(i=0;i<_2b.length;i++){ -this._xdInFlight[_2b[i]]=false; -} -} -}; -dojo._xdLoadFlattenedBundle=function(_34,_35,_36,_37){ -_36=_36||"root"; -var _38=dojo.i18n.normalizeLocale(_36).replace("-","_"); -var _39=[_34,"nls",_35].join("."); -var _3a=dojo["provide"](_39); -_3a[_38]=_37; -var _3b=[_34,_38,_35].join("."); -var _3c=dojo._xdBundleMap[_3b]; -if(_3c){ -for(var _3d in _3c){ -_3a[_3d]=_37; -} -} -}; -dojo._xdInitExtraLocales=function(){ -var _3e=dojo.config.extraLocale; -if(_3e){ -if(!_3e instanceof Array){ -_3e=[_3e]; -} -dojo._xdReqLoc=dojo.xdRequireLocalization; -dojo.xdRequireLocalization=function(m,b,_41,_42){ -dojo._xdReqLoc(m,b,_41,_42); -if(_41){ -return; -} -for(var i=0;i<_3e.length;i++){ -dojo._xdReqLoc(m,b,_3e[i],_42); -} -}; -} -}; -dojo._xdBundleMap={}; -dojo.xdRequireLocalization=function(_44,_45,_46,_47){ -if(dojo._xdInitExtraLocales){ -dojo._xdInitExtraLocales(); -dojo._xdInitExtraLocales=null; -dojo.xdRequireLocalization.apply(dojo,arguments); -return; -} -var _48=_47.split(","); -var _49=dojo.i18n.normalizeLocale(_46); -var _4a=""; -for(var i=0;i<_48.length;i++){ -if(_49.indexOf(_48[i])==0){ -if(_48[i].length>_4a.length){ -_4a=_48[i]; -} -} -} -var _4c=_4a.replace("-","_"); -var _4d=dojo.getObject([_44,"nls",_45].join(".")); -if(_4d&&_4d[_4c]){ -bundle[_49.replace("-","_")]=_4d[_4c]; -}else{ -var _4e=[_44,(_4c||"root"),_45].join("."); -var _4f=dojo._xdBundleMap[_4e]; -if(!_4f){ -_4f=dojo._xdBundleMap[_4e]={}; -} -_4f[_49.replace("-","_")]=true; -dojo.require(_44+".nls"+(_4a?"."+_4a:"")+"."+_45); -} -}; -dojo._xdRealRequireLocalization=dojo.requireLocalization; -dojo.requireLocalization=function(_50,_51,_52,_53){ -var _54=this.moduleUrl(_50).toString(); -if(this._xdIsXDomainPath(_54)){ -return dojo.xdRequireLocalization.apply(dojo,arguments); -}else{ -return dojo._xdRealRequireLocalization.apply(dojo,arguments); -} -}; -dojo._xdUnpackDependency=function(dep){ -var _56=null; -var _57=null; -switch(dep[0]){ -case "requireIf": -case "requireAfterIf": -if(dep[1]===true){ -_56=[{name:dep[2],content:null}]; -} -break; -case "platformRequire": -var _58=dep[1]; -var _59=_58["common"]||[]; -_56=(_58[dojo.hostenv.name_])?_59.concat(_58[dojo.hostenv.name_]||[]):_59.concat(_58["default"]||[]); -if(_56){ -for(var i=0;i<_56.length;i++){ -if(_56[i] instanceof Array){ -_56[i]={name:_56[i][0],content:null}; -}else{ -_56[i]={name:_56[i],content:null}; -} -} -} -break; -case "require": -_56=[{name:dep[1],content:null}]; -break; -case "i18n._preloadLocalizations": -dojo.i18n._preloadLocalizations.apply(dojo.i18n._preloadLocalizations,dep.slice(1)); -break; -} -if(dep[0]=="requireAfterIf"||dep[0]=="requireIf"){ -_57=_56; -_56=null; -} -return {requires:_56,requiresAfter:_57}; -}; -dojo._xdWalkReqs=function(){ -var _5b=null; -var req; -for(var i=0;i<this._xdOrderedReqs.length;i++){ -req=this._xdOrderedReqs[i]; -if(this._xdDepMap[req]){ -_5b=[req]; -_5b[req]=true; -this._xdEvalReqs(_5b); -} -} -}; -dojo._xdEvalReqs=function(_5e){ -while(_5e.length>0){ -var req=_5e[_5e.length-1]; -var res=this._xdDepMap[req]; -var i,_62,_63; -if(res){ -_62=res.requires; -if(_62&&_62.length>0){ -for(i=0;i<_62.length;i++){ -_63=_62[i].name; -if(_63&&!_5e[_63]){ -_5e.push(_63); -_5e[_63]=true; -this._xdEvalReqs(_5e); -} -} -} -var _64=this._xdContents[res.contentIndex]; -if(!_64.isDefined){ -var _65=_64.content; -_65["resourceName"]=_64["resourceName"]; -_65["resourcePath"]=_64["resourcePath"]; -this._xdDefList.push(_65); -_64.isDefined=true; -} -this._xdDepMap[req]=null; -_62=res.requiresAfter; -if(_62&&_62.length>0){ -for(i=0;i<_62.length;i++){ -_63=_62[i].name; -if(_63&&!_5e[_63]){ -_5e.push(_63); -_5e[_63]=true; -this._xdEvalReqs(_5e); -} -} -} -} -_5e.pop(); -} -}; -dojo._xdClearInterval=function(){ -clearInterval(this._xdTimer); -this._xdTimer=0; -}; -dojo._xdWatchInFlight=function(){ -var _66=""; -var _67=(dojo.config.xdWaitSeconds||15)*1000; -var _68=(this._xdStartTime+_67)<(new Date()).getTime(); -for(var _69 in this._xdInFlight){ -if(this._xdInFlight[_69]===true){ -if(_68){ -_66+=_69+" "; -}else{ -return; -} -} -} -this._xdClearInterval(); -if(_68){ -throw "Could not load cross-domain resources: "+_66; -} -this._xdWalkReqs(); -var _6a=this._xdDefList.length; -for(var i=0;i<_6a;i++){ -var _6c=dojo._xdDefList[i]; -if(dojo.config["debugAtAllCosts"]&&_6c["resourceName"]){ -if(!this["_xdDebugQueue"]){ -this._xdDebugQueue=[]; -} -this._xdDebugQueue.push({resourceName:_6c.resourceName,resourcePath:_6c.resourcePath}); -}else{ -_6c.apply(dojo.global,dojo._scopeArgs); -} -} -for(i=0;i<this._xdContents.length;i++){ -var _6d=this._xdContents[i]; -if(_6d.content&&!_6d.isDefined){ -_6d.content.apply(dojo.global,dojo._scopeArgs); -} -} -this._xdReset(); -if(this["_xdDebugQueue"]&&this._xdDebugQueue.length>0){ -this._xdDebugFileLoaded(); -}else{ -this._xdNotifyLoaded(); -} -}; -dojo._xdNotifyLoaded=function(){ -this._inFlightCount=0; -if(this._initFired&&!this._loadNotifying){ -this._callLoaded(); -} -}; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/array.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/array.js b/components/camel-web/src/main/webapp/js/dojo/_base/array.js deleted file mode 100644 index ccb5fdc..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/array.js +++ /dev/null @@ -1,78 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(!dojo._hasResource["dojo._base.array"]){ -dojo._hasResource["dojo._base.array"]=true; -dojo.require("dojo._base.lang"); -dojo.provide("dojo._base.array"); -(function(){ -var _1=function(_2,_3,cb){ -return [dojo.isString(_2)?_2.split(""):_2,_3||dojo.global,dojo.isString(cb)?new Function("item","index","array",cb):cb]; -}; -dojo.mixin(dojo,{indexOf:function(_5,_6,_7,_8){ -var _9=1,_a=_5.length||0,i=0; -if(_8){ -i=_a-1; -_9=_a=-1; -} -if(_7!=undefined){ -i=_7; -} -if((_8&&i>_a)||i<_a){ -for(;i!=_a;i+=_9){ -if(_5[i]==_6){ -return i; -} -} -} -return -1; -},lastIndexOf:function(_c,_d,_e){ -return dojo.indexOf(_c,_d,_e,true); -},forEach:function(_f,_10,_11){ -if(!_f||!_f.length){ -return; -} -var _p=_1(_f,_11,_10); -_f=_p[0]; -for(var i=0,l=_f.length;i<l;++i){ -_p[2].call(_p[1],_f[i],i,_f); -} -},_everyOrSome:function(_15,arr,_17,_18){ -var _p=_1(arr,_18,_17); -arr=_p[0]; -for(var i=0,l=arr.length;i<l;++i){ -var _1c=!!_p[2].call(_p[1],arr[i],i,arr); -if(_15^_1c){ -return _1c; -} -} -return _15; -},every:function(arr,_1e,_1f){ -return this._everyOrSome(true,arr,_1e,_1f); -},some:function(arr,_21,_22){ -return this._everyOrSome(false,arr,_21,_22); -},map:function(arr,_24,_25){ -var _p=_1(arr,_25,_24); -arr=_p[0]; -var _27=(arguments[3]?(new arguments[3]()):[]); -for(var i=0,l=arr.length;i<l;++i){ -_27.push(_p[2].call(_p[1],arr[i],i,arr)); -} -return _27; -},filter:function(arr,_2b,_2c){ -var _p=_1(arr,_2c,_2b); -arr=_p[0]; -var _2e=[]; -for(var i=0,l=arr.length;i<l;++i){ -if(_p[2].call(_p[1],arr[i],i,arr)){ -_2e.push(arr[i]); -} -} -return _2e; -}}); -})(); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/browser.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/browser.js b/components/camel-web/src/main/webapp/js/dojo/_base/browser.js deleted file mode 100644 index e6222bf..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/browser.js +++ /dev/null @@ -1,22 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(!dojo._hasResource["dojo._base.browser"]){ -dojo._hasResource["dojo._base.browser"]=true; -dojo.provide("dojo._base.browser"); -dojo.require("dojo._base.window"); -dojo.require("dojo._base.connect"); -dojo.require("dojo._base.event"); -dojo.require("dojo._base.html"); -dojo.require("dojo._base.NodeList"); -dojo.require("dojo._base.query"); -dojo.require("dojo._base.xhr"); -dojo.require("dojo._base.fx"); -dojo.forEach(dojo.config.require,function(i){ -dojo["require"](i); -}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/connect.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/connect.js b/components/camel-web/src/main/webapp/js/dojo/_base/connect.js deleted file mode 100644 index cf344f9..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/connect.js +++ /dev/null @@ -1,85 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(!dojo._hasResource["dojo._base.connect"]){ -dojo._hasResource["dojo._base.connect"]=true; -dojo.provide("dojo._base.connect"); -dojo.require("dojo._base.lang"); -dojo._listener={getDispatcher:function(){ -return function(){ -var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target; -var r=t&&t.apply(this,arguments); -var _6; -_6=[].concat(ls); -for(var i in _6){ -if(!(i in ap)){ -_6[i].apply(this,arguments); -} -} -return r; -}; -},add:function(_8,_9,_a){ -_8=_8||dojo.global; -var f=_8[_9]; -if(!f||!f._listeners){ -var d=dojo._listener.getDispatcher(); -d.target=f; -d._listeners=[]; -f=_8[_9]=d; -} -return f._listeners.push(_a); -},remove:function(_d,_e,_f){ -var f=(_d||dojo.global)[_e]; -if(f&&f._listeners&&_f--){ -delete f._listeners[_f]; -} -}}; -dojo.connect=function(obj,_12,_13,_14,_15){ -var a=arguments,_17=[],i=0; -_17.push(dojo.isString(a[0])?null:a[i++],a[i++]); -var a1=a[i+1]; -_17.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]); -for(var l=a.length;i<l;i++){ -_17.push(a[i]); -} -return dojo._connect.apply(this,_17); -}; -dojo._connect=function(obj,_1c,_1d,_1e){ -var l=dojo._listener,h=l.add(obj,_1c,dojo.hitch(_1d,_1e)); -return [obj,_1c,h,l]; -}; -dojo.disconnect=function(_21){ -if(_21&&_21[0]!==undefined){ -dojo._disconnect.apply(this,_21); -delete _21[0]; -} -}; -dojo._disconnect=function(obj,_23,_24,_25){ -_25.remove(obj,_23,_24); -}; -dojo._topics={}; -dojo.subscribe=function(_26,_27,_28){ -return [_26,dojo._listener.add(dojo._topics,_26,dojo.hitch(_27,_28))]; -}; -dojo.unsubscribe=function(_29){ -if(_29){ -dojo._listener.remove(dojo._topics,_29[0],_29[1]); -} -}; -dojo.publish=function(_2a,_2b){ -var f=dojo._topics[_2a]; -if(f){ -f.apply(this,_2b||[]); -} -}; -dojo.connectPublisher=function(_2d,obj,_2f){ -var pf=function(){ -dojo.publish(_2d,arguments); -}; -return (_2f)?dojo.connect(obj,_2f,pf):dojo.connect(obj,pf); -}; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/declare.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/declare.js b/components/camel-web/src/main/webapp/js/dojo/_base/declare.js deleted file mode 100644 index 17753f5..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/declare.js +++ /dev/null @@ -1,128 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(!dojo._hasResource["dojo._base.declare"]){ -dojo._hasResource["dojo._base.declare"]=true; -dojo.provide("dojo._base.declare"); -dojo.require("dojo._base.lang"); -dojo.declare=function(_1,_2,_3){ -var dd=arguments.callee,_5; -if(dojo.isArray(_2)){ -_5=_2; -_2=_5.shift(); -} -if(_5){ -dojo.forEach(_5,function(m,i){ -if(!m){ -throw (_1+": mixin #"+i+" is null"); -} -_2=dd._delegate(_2,m); -}); -} -var _8=dd._delegate(_2); -_3=_3||{}; -_8.extend(_3); -dojo.extend(_8,{declaredClass:_1,_constructor:_3.constructor}); -_8.prototype.constructor=_8; -return dojo.setObject(_1,_8); -}; -dojo.mixin(dojo.declare,{_delegate:function(_9,_a){ -var bp=(_9||0).prototype,mp=(_a||0).prototype,dd=dojo.declare; -var _e=dd._makeCtor(); -dojo.mixin(_e,{superclass:bp,mixin:mp,extend:dd._extend}); -if(_9){ -_e.prototype=dojo._delegate(bp); -} -dojo.extend(_e,dd._core,mp||0,{_constructor:null,preamble:null}); -_e.prototype.constructor=_e; -_e.prototype.declaredClass=(bp||0).declaredClass+"_"+(mp||0).declaredClass; -return _e; -},_extend:function(_f){ -var i,fn; -for(i in _f){ -if(dojo.isFunction(fn=_f[i])&&!0[i]){ -fn.nom=i; -fn.ctor=this; -} -} -dojo.extend(this,_f); -},_makeCtor:function(){ -return function(){ -this._construct(arguments); -}; -},_core:{_construct:function(_12){ -var c=_12.callee,s=c.superclass,ct=s&&s.constructor,m=c.mixin,mct=m&&m.constructor,a=_12,ii,fn; -if(a[0]){ -if(((fn=a[0].preamble))){ -a=fn.apply(this,a)||a; -} -} -if((fn=c.prototype.preamble)){ -a=fn.apply(this,a)||a; -} -if(ct&&ct.apply){ -ct.apply(this,a); -} -if(mct&&mct.apply){ -mct.apply(this,a); -} -if((ii=c.prototype._constructor)){ -ii.apply(this,_12); -} -if(this.constructor.prototype==c.prototype&&(ct=this.postscript)){ -ct.apply(this,_12); -} -},_findMixin:function(_1b){ -var c=this.constructor,p,m; -while(c){ -p=c.superclass; -m=c.mixin; -if(m==_1b||(m instanceof _1b.constructor)){ -return p; -} -if(m&&m._findMixin&&(m=m._findMixin(_1b))){ -return m; -} -c=p&&p.constructor; -} -},_findMethod:function(_1f,_20,_21,has){ -var p=_21,c,m,f; -do{ -c=p.constructor; -m=c.mixin; -if(m&&(m=this._findMethod(_1f,_20,m,has))){ -return m; -} -if((f=p[_1f])&&(has==(f==_20))){ -return p; -} -p=c.superclass; -}while(p); -return !has&&(p=this._findMixin(_21))&&this._findMethod(_1f,_20,p,has); -},inherited:function(_27,_28,_29){ -var a=arguments; -if(!dojo.isString(a[0])){ -_29=_28; -_28=_27; -_27=_28.callee.nom; -} -a=_29||_28; -var c=_28.callee,p=this.constructor.prototype,fn,mp; -if(this[_27]!=c||p[_27]==c){ -mp=(c.ctor||0).superclass||this._findMethod(_27,c,p,true); -if(!mp){ -throw (this.declaredClass+": inherited method \""+_27+"\" mismatch"); -} -p=this._findMethod(_27,c,mp,false); -} -fn=p&&p[_27]; -if(!fn){ -throw (mp.declaredClass+": inherited method \""+_27+"\" not found"); -} -return fn.apply(this,a); -}}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/event.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/event.js b/components/camel-web/src/main/webapp/js/dojo/_base/event.js deleted file mode 100644 index 87d16ed..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/event.js +++ /dev/null @@ -1,341 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(!dojo._hasResource["dojo._base.event"]){ -dojo._hasResource["dojo._base.event"]=true; -dojo.provide("dojo._base.event"); -dojo.require("dojo._base.connect"); -(function(){ -var _1=(dojo._event_listener={add:function(_2,_3,fp){ -if(!_2){ -return; -} -_3=_1._normalizeEventName(_3); -fp=_1._fixCallback(_3,fp); -var _5=_3; -if(!dojo.isIE&&(_3=="mouseenter"||_3=="mouseleave")){ -var _6=fp; -_3=(_3=="mouseenter")?"mouseover":"mouseout"; -fp=function(e){ -if(dojo.isFF<=2){ -try{ -e.relatedTarget.tagName; -} -catch(e2){ -return; -} -} -if(!dojo.isDescendant(e.relatedTarget,_2)){ -return _6.call(this,e); -} -}; -} -_2.addEventListener(_3,fp,false); -return fp; -},remove:function(_8,_9,_a){ -if(_8){ -_9=_1._normalizeEventName(_9); -if(!dojo.isIE&&(_9=="mouseenter"||_9=="mouseleave")){ -_9=(_9=="mouseenter")?"mouseover":"mouseout"; -} -_8.removeEventListener(_9,_a,false); -} -},_normalizeEventName:function(_b){ -return _b.slice(0,2)=="on"?_b.slice(2):_b; -},_fixCallback:function(_c,fp){ -return _c!="keypress"?fp:function(e){ -return fp.call(this,_1._fixEvent(e,this)); -}; -},_fixEvent:function(_f,_10){ -switch(_f.type){ -case "keypress": -_1._setKeyChar(_f); -break; -} -return _f; -},_setKeyChar:function(evt){ -evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):""; -evt.charOrCode=evt.keyChar||evt.keyCode; -},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39}}); -dojo.fixEvent=function(evt,_13){ -return _1._fixEvent(evt,_13); -}; -dojo.stopEvent=function(evt){ -evt.preventDefault(); -evt.stopPropagation(); -}; -var _15=dojo._listener; -dojo._connect=function(obj,_17,_18,_19,_1a){ -var _1b=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener); -var lid=_1b?(_1a?2:1):0,l=[dojo._listener,_1,_15][lid]; -var h=l.add(obj,_17,dojo.hitch(_18,_19)); -return [obj,_17,h,lid]; -}; -dojo._disconnect=function(obj,_20,_21,_22){ -([dojo._listener,_1,_15][_22]).remove(obj,_20,_21); -}; -dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145}; -if(dojo.isIE){ -var _23=function(e,_25){ -try{ -return (e.keyCode=_25); -} -catch(e){ -return 0; -} -}; -var iel=dojo._listener; -var _27=(dojo._ieListenersName="_"+dojo._scopeName+"_listeners"); -if(!dojo.config._allow_leaks){ -_15=iel=dojo._ie_listener={handlers:[],add:function(_28,_29,_2a){ -_28=_28||dojo.global; -var f=_28[_29]; -if(!f||!f[_27]){ -var d=dojo._getIeDispatcher(); -d.target=f&&(ieh.push(f)-1); -d[_27]=[]; -f=_28[_29]=d; -} -return f[_27].push(ieh.push(_2a)-1); -},remove:function(_2e,_2f,_30){ -var f=(_2e||dojo.global)[_2f],l=f&&f[_27]; -if(f&&l&&_30--){ -delete ieh[l[_30]]; -delete l[_30]; -} -}}; -var ieh=iel.handlers; -} -dojo.mixin(_1,{add:function(_33,_34,fp){ -if(!_33){ -return; -} -_34=_1._normalizeEventName(_34); -if(_34=="onkeypress"){ -var kd=_33.onkeydown; -if(!kd||!kd[_27]||!kd._stealthKeydownHandle){ -var h=_1.add(_33,"onkeydown",_1._stealthKeyDown); -kd=_33.onkeydown; -kd._stealthKeydownHandle=h; -kd._stealthKeydownRefs=1; -}else{ -kd._stealthKeydownRefs++; -} -} -return iel.add(_33,_34,_1._fixCallback(fp)); -},remove:function(_38,_39,_3a){ -_39=_1._normalizeEventName(_39); -iel.remove(_38,_39,_3a); -if(_39=="onkeypress"){ -var kd=_38.onkeydown; -if(--kd._stealthKeydownRefs<=0){ -iel.remove(_38,"onkeydown",kd._stealthKeydownHandle); -delete kd._stealthKeydownHandle; -} -} -},_normalizeEventName:function(_3c){ -return _3c.slice(0,2)!="on"?"on"+_3c:_3c; -},_nop:function(){ -},_fixEvent:function(evt,_3e){ -if(!evt){ -var w=_3e&&(_3e.ownerDocument||_3e.document||_3e).parentWindow||window; -evt=w.event; -} -if(!evt){ -return (evt); -} -evt.target=evt.srcElement; -evt.currentTarget=(_3e||evt.srcElement); -evt.layerX=evt.offsetX; -evt.layerY=evt.offsetY; -var se=evt.srcElement,doc=(se&&se.ownerDocument)||document; -var _42=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement; -var _43=dojo._getIeDocumentElementOffset(); -evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_42.scrollLeft||0)-_43.x; -evt.pageY=evt.clientY+(_42.scrollTop||0)-_43.y; -if(evt.type=="mouseover"){ -evt.relatedTarget=evt.fromElement; -} -if(evt.type=="mouseout"){ -evt.relatedTarget=evt.toElement; -} -evt.stopPropagation=_1._stopPropagation; -evt.preventDefault=_1._preventDefault; -return _1._fixKeys(evt); -},_fixKeys:function(evt){ -switch(evt.type){ -case "keypress": -var c=("charCode" in evt?evt.charCode:evt.keyCode); -if(c==10){ -c=0; -evt.keyCode=13; -}else{ -if(c==13||c==27){ -c=0; -}else{ -if(c==3){ -c=99; -} -} -} -evt.charCode=c; -_1._setKeyChar(evt); -break; -} -return evt; -},_stealthKeyDown:function(evt){ -var kp=evt.currentTarget.onkeypress; -if(!kp||!kp[_27]){ -return; -} -var k=evt.keyCode; -var _49=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222); -if(_49||evt.ctrlKey){ -var c=_49?0:k; -if(evt.ctrlKey){ -if(k==3||k==13){ -return; -}else{ -if(c>95&&c<106){ -c-=48; -}else{ -if((!evt.shiftKey)&&(c>=65&&c<=90)){ -c+=32; -}else{ -c=_1._punctMap[c]||c; -} -} -} -} -var _4b=_1._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c}); -kp.call(evt.currentTarget,_4b); -evt.cancelBubble=_4b.cancelBubble; -evt.returnValue=_4b.returnValue; -_23(evt,_4b.keyCode); -} -},_stopPropagation:function(){ -this.cancelBubble=true; -},_preventDefault:function(){ -this.bubbledKeyCode=this.keyCode; -if(this.ctrlKey){ -_23(this,0); -} -this.returnValue=false; -}}); -dojo.stopEvent=function(evt){ -evt=evt||window.event; -_1._stopPropagation.call(evt); -_1._preventDefault.call(evt); -}; -} -_1._synthesizeEvent=function(evt,_4e){ -var _4f=dojo.mixin({},evt,_4e); -_1._setKeyChar(_4f); -_4f.preventDefault=function(){ -evt.preventDefault(); -}; -_4f.stopPropagation=function(){ -evt.stopPropagation(); -}; -return _4f; -}; -if(dojo.isOpera){ -dojo.mixin(_1,{_fixEvent:function(evt,_51){ -switch(evt.type){ -case "keypress": -var c=evt.which; -if(c==3){ -c=99; -} -c=c<41&&!evt.shiftKey?0:c; -if(evt.ctrlKey&&!evt.shiftKey&&c>=65&&c<=90){ -c+=32; -} -return _1._synthesizeEvent(evt,{charCode:c}); -} -return evt; -}}); -} -if(dojo.isWebKit){ -_1._add=_1.add; -_1._remove=_1.remove; -dojo.mixin(_1,{add:function(_53,_54,fp){ -if(!_53){ -return; -} -var _56=_1._add(_53,_54,fp); -if(_1._normalizeEventName(_54)=="keypress"){ -_56._stealthKeyDownHandle=_1._add(_53,"keydown",function(evt){ -var k=evt.keyCode; -var _59=k!=13&&k!=32&&k!=27&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222); -if(_59||evt.ctrlKey){ -var c=_59?0:k; -if(evt.ctrlKey){ -if(k==3||k==13){ -return; -}else{ -if(c>95&&c<106){ -c-=48; -}else{ -if(!evt.shiftKey&&c>=65&&c<=90){ -c+=32; -}else{ -c=_1._punctMap[c]||c; -} -} -} -} -var _5b=_1._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c}); -fp.call(evt.currentTarget,_5b); -} -}); -} -return _56; -},remove:function(_5c,_5d,_5e){ -if(_5c){ -if(_5e._stealthKeyDownHandle){ -_1._remove(_5c,"keydown",_5e._stealthKeyDownHandle); -} -_1._remove(_5c,_5d,_5e); -} -},_fixEvent:function(evt,_60){ -switch(evt.type){ -case "keypress": -if(evt.faux){ -return evt; -} -var c=evt.charCode; -c=c>=32?c:0; -return _1._synthesizeEvent(evt,{charCode:c,faux:true}); -} -return evt; -}}); -} -})(); -if(dojo.isIE){ -dojo._ieDispatcher=function(_62,_63){ -var ap=Array.prototype,h=dojo._ie_listener.handlers,c=_62.callee,ls=c[dojo._ieListenersName],t=h[c.target]; -var r=t&&t.apply(_63,_62); -var lls=[].concat(ls); -for(var i in lls){ -if(!(i in ap)){ -h[lls[i]].apply(_63,_62); -} -} -return r; -}; -dojo._getIeDispatcher=function(){ -return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)"); -}; -dojo._event_listener._fixCallback=function(fp){ -var f=dojo._event_listener._fixEvent; -return function(e){ -return fp.call(this,f(e,this)); -}; -}; -} -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/fx.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/fx.js b/components/camel-web/src/main/webapp/js/dojo/_base/fx.js deleted file mode 100644 index dbf9126..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/fx.js +++ /dev/null @@ -1,296 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(!dojo._hasResource["dojo._base.fx"]){ -dojo._hasResource["dojo._base.fx"]=true; -dojo.provide("dojo._base.fx"); -dojo.require("dojo._base.Color"); -dojo.require("dojo._base.connect"); -dojo.require("dojo._base.declare"); -dojo.require("dojo._base.lang"); -dojo.require("dojo._base.html"); -(function(){ -var d=dojo; -var _2=d.mixin; -dojo._Line=function(_3,_4){ -this.start=_3; -this.end=_4; -}; -dojo._Line.prototype.getValue=function(n){ -return ((this.end-this.start)*n)+this.start; -}; -d.declare("dojo._Animation",null,{constructor:function(_6){ -_2(this,_6); -if(d.isArray(this.curve)){ -this.curve=new d._Line(this.curve[0],this.curve[1]); -} -},duration:350,repeat:0,rate:10,_percent:0,_startRepeatCount:0,_fire:function(_7,_8){ -if(this[_7]){ -if(dojo.config.debugAtAllCosts){ -this[_7].apply(this,_8||[]); -}else{ -try{ -this[_7].apply(this,_8||[]); -} -catch(e){ -console.error("exception in animation handler for:",_7); -console.error(e); -} -} -} -return this; -},play:function(_9,_a){ -var _t=this; -if(_t._delayTimer){ -_t._clearTimer(); -} -if(_a){ -_t._stopTimer(); -_t._active=_t._paused=false; -_t._percent=0; -}else{ -if(_t._active&&!_t._paused){ -return _t; -} -} -_t._fire("beforeBegin"); -var de=_9||_t.delay,_p=dojo.hitch(_t,"_play",_a); -if(de>0){ -_t._delayTimer=setTimeout(_p,de); -return _t; -} -_p(); -return _t; -},_play:function(_e){ -var _t=this; -if(_t._delayTimer){ -_t._clearTimer(); -} -_t._startTime=new Date().valueOf(); -if(_t._paused){ -_t._startTime-=_t.duration*_t._percent; -} -_t._endTime=_t._startTime+_t.duration; -_t._active=true; -_t._paused=false; -var _10=_t.curve.getValue(_t._percent); -if(!_t._percent){ -if(!_t._startRepeatCount){ -_t._startRepeatCount=_t.repeat; -} -_t._fire("onBegin",[_10]); -} -_t._fire("onPlay",[_10]); -_t._cycle(); -return _t; -},pause:function(){ -var _t=this; -if(_t._delayTimer){ -_t._clearTimer(); -} -_t._stopTimer(); -if(!_t._active){ -return _t; -} -_t._paused=true; -_t._fire("onPause",[_t.curve.getValue(_t._percent)]); -return _t; -},gotoPercent:function(_12,_13){ -var _t=this; -_t._stopTimer(); -_t._active=_t._paused=true; -_t._percent=_12; -if(_13){ -_t.play(); -} -return _t; -},stop:function(_15){ -var _t=this; -if(_t._delayTimer){ -_t._clearTimer(); -} -if(!_t._timer){ -return _t; -} -_t._stopTimer(); -if(_15){ -_t._percent=1; -} -_t._fire("onStop",[_t.curve.getValue(_t._percent)]); -_t._active=_t._paused=false; -return _t; -},status:function(){ -if(this._active){ -return this._paused?"paused":"playing"; -} -return "stopped"; -},_cycle:function(){ -var _t=this; -if(_t._active){ -var _18=new Date().valueOf(); -var _19=(_18-_t._startTime)/(_t._endTime-_t._startTime); -if(_19>=1){ -_19=1; -} -_t._percent=_19; -if(_t.easing){ -_19=_t.easing(_19); -} -_t._fire("onAnimate",[_t.curve.getValue(_19)]); -if(_t._percent<1){ -_t._startTimer(); -}else{ -_t._active=false; -if(_t.repeat>0){ -_t.repeat--; -_t.play(null,true); -}else{ -if(_t.repeat==-1){ -_t.play(null,true); -}else{ -if(_t._startRepeatCount){ -_t.repeat=_t._startRepeatCount; -_t._startRepeatCount=0; -} -} -} -_t._percent=0; -_t._fire("onEnd"); -_t._stopTimer(); -} -} -return _t; -},_clearTimer:function(){ -clearTimeout(this._delayTimer); -delete this._delayTimer; -}}); -var ctr=0,_1b=[],_1c=null,_1d={run:function(){ -}}; -dojo._Animation.prototype._startTimer=function(){ -if(!this._timer){ -this._timer=d.connect(_1d,"run",this,"_cycle"); -ctr++; -} -if(!_1c){ -_1c=setInterval(d.hitch(_1d,"run"),this.rate); -} -}; -dojo._Animation.prototype._stopTimer=function(){ -if(this._timer){ -d.disconnect(this._timer); -this._timer=null; -ctr--; -} -if(ctr<=0){ -clearInterval(_1c); -_1c=null; -ctr=0; -} -}; -var _1e=d.isIE?function(_1f){ -var ns=_1f.style; -if(!ns.width.length&&d.style(_1f,"width")=="auto"){ -ns.width="auto"; -} -}:function(){ -}; -dojo._fade=function(_21){ -_21.node=d.byId(_21.node); -var _22=_2({properties:{}},_21),_23=(_22.properties.opacity={}); -_23.start=!("start" in _22)?function(){ -return +d.style(_22.node,"opacity")||0; -}:_22.start; -_23.end=_22.end; -var _24=d.animateProperty(_22); -d.connect(_24,"beforeBegin",d.partial(_1e,_22.node)); -return _24; -}; -dojo.fadeIn=function(_25){ -return d._fade(_2({end:1},_25)); -}; -dojo.fadeOut=function(_26){ -return d._fade(_2({end:0},_26)); -}; -dojo._defaultEasing=function(n){ -return 0.5+((Math.sin((n+1.5)*Math.PI))/2); -}; -var _28=function(_29){ -this._properties=_29; -for(var p in _29){ -var _2b=_29[p]; -if(_2b.start instanceof d.Color){ -_2b.tempColor=new d.Color(); -} -} -}; -_28.prototype.getValue=function(r){ -var ret={}; -for(var p in this._properties){ -var _2f=this._properties[p],_30=_2f.start; -if(_30 instanceof d.Color){ -ret[p]=d.blendColors(_30,_2f.end,r,_2f.tempColor).toCss(); -}else{ -if(!d.isArray(_30)){ -ret[p]=((_2f.end-_30)*r)+_30+(p!="opacity"?_2f.units||"px":0); -} -} -} -return ret; -}; -dojo.animateProperty=function(_31){ -_31.node=d.byId(_31.node); -if(!_31.easing){ -_31.easing=d._defaultEasing; -} -var _32=new d._Animation(_31); -d.connect(_32,"beforeBegin",_32,function(){ -var pm={}; -for(var p in this.properties){ -if(p=="width"||p=="height"){ -this.node.display="block"; -} -var _35=this.properties[p]; -_35=pm[p]=_2({},(d.isObject(_35)?_35:{end:_35})); -if(d.isFunction(_35.start)){ -_35.start=_35.start(); -} -if(d.isFunction(_35.end)){ -_35.end=_35.end(); -} -var _36=(p.toLowerCase().indexOf("color")>=0); -function _37(_38,p){ -var v={height:_38.offsetHeight,width:_38.offsetWidth}[p]; -if(v!==undefined){ -return v; -} -v=d.style(_38,p); -return (p=="opacity")?+v:(_36?v:parseFloat(v)); -}; -if(!("end" in _35)){ -_35.end=_37(this.node,p); -}else{ -if(!("start" in _35)){ -_35.start=_37(this.node,p); -} -} -if(_36){ -_35.start=new d.Color(_35.start); -_35.end=new d.Color(_35.end); -}else{ -_35.start=(p=="opacity")?+_35.start:parseFloat(_35.start); -} -} -this.curve=new _28(pm); -}); -d.connect(_32,"onAnimate",d.hitch(d,"style",_32.node)); -return _32; -}; -dojo.anim=function(_3b,_3c,_3d,_3e,_3f,_40){ -return d.animateProperty({node:_3b,duration:_3d||d._Animation.prototype.duration,properties:_3c,easing:_3e,onEnd:_3f}).play(_40||0); -}; -})(); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/html.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/html.js b/components/camel-web/src/main/webapp/js/dojo/_base/html.js deleted file mode 100644 index 3c88d52..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/html.js +++ /dev/null @@ -1,715 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(!dojo._hasResource["dojo._base.html"]){ -dojo._hasResource["dojo._base.html"]=true; -dojo.require("dojo._base.lang"); -dojo.provide("dojo._base.html"); -try{ -document.execCommand("BackgroundImageCache",false,true); -} -catch(e){ -} -if(dojo.isIE||dojo.isOpera){ -dojo.byId=function(id,_2){ -if(dojo.isString(id)){ -var _d=_2||dojo.doc; -var te=_d.getElementById(id); -if(te&&te.attributes.id.value==id){ -return te; -}else{ -var _5=_d.all[id]; -if(!_5||_5.nodeName){ -_5=[_5]; -} -var i=0; -while((te=_5[i++])){ -if(te.attributes&&te.attributes.id&&te.attributes.id.value==id){ -return te; -} -} -} -}else{ -return id; -} -}; -}else{ -dojo.byId=function(id,_8){ -return dojo.isString(id)?(_8||dojo.doc).getElementById(id):id; -}; -} -(function(){ -var d=dojo; -var _a=null; -d.addOnWindowUnload(function(){ -_a=null; -}); -dojo._destroyElement=dojo.destroy=function(_b){ -_b=d.byId(_b); -try{ -if(!_a||_a.ownerDocument!=_b.ownerDocument){ -_a=_b.ownerDocument.createElement("div"); -} -_a.appendChild(_b.parentNode?_b.parentNode.removeChild(_b):_b); -_a.innerHTML=""; -} -catch(e){ -} -}; -dojo.isDescendant=function(_c,_d){ -try{ -_c=d.byId(_c); -_d=d.byId(_d); -while(_c){ -if(_c===_d){ -return true; -} -_c=_c.parentNode; -} -} -catch(e){ -} -return false; -}; -dojo.setSelectable=function(_e,_f){ -_e=d.byId(_e); -if(d.isMozilla){ -_e.style.MozUserSelect=_f?"":"none"; -}else{ -if(d.isKhtml||d.isWebKit){ -_e.style.KhtmlUserSelect=_f?"auto":"none"; -}else{ -if(d.isIE){ -var v=(_e.unselectable=_f?"":"on"); -d.query("*",_e).forEach("item.unselectable = '"+v+"'"); -} -} -} -}; -var _11=function(_12,ref){ -var _14=ref.parentNode; -if(_14){ -_14.insertBefore(_12,ref); -} -}; -var _15=function(_16,ref){ -var _18=ref.parentNode; -if(_18){ -if(_18.lastChild==ref){ -_18.appendChild(_16); -}else{ -_18.insertBefore(_16,ref.nextSibling); -} -} -}; -dojo.place=function(_19,_1a,_1b){ -_1a=d.byId(_1a); -if(d.isString(_19)){ -_19=_19.charAt(0)=="<"?d._toDom(_19,_1a.ownerDocument):d.byId(_19); -} -if(typeof _1b=="number"){ -var cn=_1a.childNodes; -if(!cn.length||cn.length<=_1b){ -_1a.appendChild(_19); -}else{ -_11(_19,cn[_1b<0?0:_1b]); -} -}else{ -switch(_1b){ -case "before": -_11(_19,_1a); -break; -case "after": -_15(_19,_1a); -break; -case "replace": -_1a.parentNode.replaceChild(_19,_1a); -break; -case "only": -d.empty(_1a); -_1a.appendChild(_19); -break; -case "first": -if(_1a.firstChild){ -_11(_19,_1a.firstChild); -break; -} -default: -_1a.appendChild(_19); -} -} -return _19; -}; -dojo.boxModel="content-box"; -if(d.isIE){ -var _1d=document.compatMode; -d.boxModel=_1d=="BackCompat"||_1d=="QuirksMode"||d.isIE<6?"border-box":"content-box"; -} -var gcs; -if(d.isWebKit){ -gcs=function(_1f){ -var s; -if(_1f instanceof HTMLElement){ -var dv=_1f.ownerDocument.defaultView; -s=dv.getComputedStyle(_1f,null); -if(!s&&_1f.style){ -_1f.style.display=""; -s=dv.getComputedStyle(_1f,null); -} -} -return s||{}; -}; -}else{ -if(d.isIE){ -gcs=function(_22){ -return _22.nodeType==1?_22.currentStyle:{}; -}; -}else{ -gcs=function(_23){ -return _23 instanceof HTMLElement?_23.ownerDocument.defaultView.getComputedStyle(_23,null):{}; -}; -} -} -dojo.getComputedStyle=gcs; -if(!d.isIE){ -d._toPixelValue=function(_24,_25){ -return parseFloat(_25)||0; -}; -}else{ -d._toPixelValue=function(_26,_27){ -if(!_27){ -return 0; -} -if(_27=="medium"){ -return 4; -} -if(_27.slice&&_27.slice(-2)=="px"){ -return parseFloat(_27); -} -with(_26){ -var _28=style.left; -var _29=runtimeStyle.left; -runtimeStyle.left=currentStyle.left; -try{ -style.left=_27; -_27=style.pixelLeft; -} -catch(e){ -_27=0; -} -style.left=_28; -runtimeStyle.left=_29; -} -return _27; -}; -} -var px=d._toPixelValue; -var _2b="DXImageTransform.Microsoft.Alpha"; -var af=function(n,f){ -try{ -return n.filters.item(_2b); -} -catch(e){ -return f?{}:null; -} -}; -dojo._getOpacity=d.isIE?function(_2f){ -try{ -return af(_2f).Opacity/100; -} -catch(e){ -return 1; -} -}:function(_30){ -return gcs(_30).opacity; -}; -dojo._setOpacity=d.isIE?function(_31,_32){ -var ov=_32*100; -_31.style.zoom=1; -af(_31,1).Enabled=!(_32==1); -if(!af(_31)){ -_31.style.filter+=" progid:"+_2b+"(Opacity="+ov+")"; -}else{ -af(_31,1).Opacity=ov; -} -if(_31.nodeName.toLowerCase()=="tr"){ -d.query("> td",_31).forEach(function(i){ -d._setOpacity(i,_32); -}); -} -return _32; -}:function(_35,_36){ -return _35.style.opacity=_36; -}; -var _37={left:true,top:true}; -var _38=/margin|padding|width|height|max|min|offset/; -var _39=function(_3a,_3b,_3c){ -_3b=_3b.toLowerCase(); -if(d.isIE){ -if(_3c=="auto"){ -if(_3b=="height"){ -return _3a.offsetHeight; -} -if(_3b=="width"){ -return _3a.offsetWidth; -} -} -if(_3b=="fontweight"){ -switch(_3c){ -case 700: -return "bold"; -case 400: -default: -return "normal"; -} -} -} -if(!(_3b in _37)){ -_37[_3b]=_38.test(_3b); -} -return _37[_3b]?px(_3a,_3c):_3c; -}; -var _3d=d.isIE?"styleFloat":"cssFloat",_3e={"cssFloat":_3d,"styleFloat":_3d,"float":_3d}; -dojo.style=function(_3f,_40,_41){ -var n=d.byId(_3f),_43=arguments.length,op=(_40=="opacity"); -_40=_3e[_40]||_40; -if(_43==3){ -return op?d._setOpacity(n,_41):n.style[_40]=_41; -} -if(_43==2&&op){ -return d._getOpacity(n); -} -var s=gcs(n); -if(_43==2&&!d.isString(_40)){ -for(var x in _40){ -d.style(_3f,x,_40[x]); -} -return s; -} -return (_43==1)?s:_39(n,_40,s[_40]||n.style[_40]); -}; -dojo._getPadExtents=function(n,_48){ -var s=_48||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop); -return {l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)}; -}; -dojo._getBorderExtents=function(n,_4d){ -var ne="none",s=_4d||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0); -return {l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)}; -}; -dojo._getPadBorderExtents=function(n,_53){ -var s=_53||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s); -return {l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h}; -}; -dojo._getMarginExtents=function(n,_58){ -var s=_58||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom); -if(d.isWebKit&&(s.position!="absolute")){ -r=l; -} -return {l:l,t:t,w:l+r,h:t+b}; -}; -dojo._getMarginBox=function(_5e,_5f){ -var s=_5f||gcs(_5e),me=d._getMarginExtents(_5e,s); -var l=_5e.offsetLeft-me.l,t=_5e.offsetTop-me.t,p=_5e.parentNode; -if(d.isMoz){ -var sl=parseFloat(s.left),st=parseFloat(s.top); -if(!isNaN(sl)&&!isNaN(st)){ -l=sl,t=st; -}else{ -if(p&&p.style){ -var pcs=gcs(p); -if(pcs.overflow!="visible"){ -var be=d._getBorderExtents(p,pcs); -l+=be.l,t+=be.t; -} -} -} -}else{ -if(d.isOpera){ -if(p){ -be=d._getBorderExtents(p); -l-=be.l; -t-=be.t; -} -} -} -return {l:l,t:t,w:_5e.offsetWidth+me.w,h:_5e.offsetHeight+me.h}; -}; -dojo._getContentBox=function(_69,_6a){ -var s=_6a||gcs(_69),pe=d._getPadExtents(_69,s),be=d._getBorderExtents(_69,s),w=_69.clientWidth,h; -if(!w){ -w=_69.offsetWidth,h=_69.offsetHeight; -}else{ -h=_69.clientHeight,be.w=be.h=0; -} -if(d.isOpera){ -pe.l+=be.l; -pe.t+=be.t; -} -return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h}; -}; -dojo._getBorderBox=function(_70,_71){ -var s=_71||gcs(_70),pe=d._getPadExtents(_70,s),cb=d._getContentBox(_70,s); -return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h}; -}; -dojo._setBox=function(_75,l,t,w,h,u){ -u=u||"px"; -var s=_75.style; -if(!isNaN(l)){ -s.left=l+u; -} -if(!isNaN(t)){ -s.top=t+u; -} -if(w>=0){ -s.width=w+u; -} -if(h>=0){ -s.height=h+u; -} -}; -dojo._isButtonTag=function(_7c){ -return _7c.tagName=="BUTTON"||_7c.tagName=="INPUT"&&_7c.getAttribute("type").toUpperCase()=="BUTTON"; -}; -dojo._usesBorderBox=function(_7d){ -var n=_7d.tagName; -return d.boxModel=="border-box"||n=="TABLE"||d._isButtonTag(_7d); -}; -dojo._setContentSize=function(_7f,_80,_81,_82){ -if(d._usesBorderBox(_7f)){ -var pb=d._getPadBorderExtents(_7f,_82); -if(_80>=0){ -_80+=pb.w; -} -if(_81>=0){ -_81+=pb.h; -} -} -d._setBox(_7f,NaN,NaN,_80,_81); -}; -dojo._setMarginBox=function(_84,_85,_86,_87,_88,_89){ -var s=_89||gcs(_84),bb=d._usesBorderBox(_84),pb=bb?_8d:d._getPadBorderExtents(_84,s); -if(d.isWebKit){ -if(d._isButtonTag(_84)){ -var ns=_84.style; -if(_87>=0&&!ns.width){ -ns.width="4px"; -} -if(_88>=0&&!ns.height){ -ns.height="4px"; -} -} -} -var mb=d._getMarginExtents(_84,s); -if(_87>=0){ -_87=Math.max(_87-pb.w-mb.w,0); -} -if(_88>=0){ -_88=Math.max(_88-pb.h-mb.h,0); -} -d._setBox(_84,_85,_86,_87,_88); -}; -var _8d={l:0,t:0,w:0,h:0}; -dojo.marginBox=function(_90,box){ -var n=d.byId(_90),s=gcs(n),b=box; -return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s); -}; -dojo.contentBox=function(_95,box){ -var n=d.byId(_95),s=gcs(n),b=box; -return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s); -}; -var _9a=function(_9b,_9c){ -if(!(_9b=(_9b||0).parentNode)){ -return 0; -} -var val,_9e=0,_b=d.body(); -while(_9b&&_9b.style){ -if(gcs(_9b).position=="fixed"){ -return 0; -} -val=_9b[_9c]; -if(val){ -_9e+=val-0; -if(_9b==_b){ -break; -} -} -_9b=_9b.parentNode; -} -return _9e; -}; -dojo._docScroll=function(){ -var _b=d.body(),_w=d.global,de=d.doc.documentElement; -return {y:(_w.pageYOffset||de.scrollTop||_b.scrollTop||0),x:(_w.pageXOffset||d._fixIeBiDiScrollLeft(de.scrollLeft)||_b.scrollLeft||0)}; -}; -dojo._isBodyLtr=function(){ -return ("_bodyLtr" in d)?d._bodyLtr:d._bodyLtr=gcs(d.body()).direction=="ltr"; -}; -dojo._getIeDocumentElementOffset=function(){ -var de=d.doc.documentElement; -if(d.isIE<7){ -return {x:d._isBodyLtr()||window.parent==window?de.clientLeft:de.offsetWidth-de.clientWidth-de.clientLeft,y:de.clientTop}; -}else{ -if(d.isIE<8){ -return {x:de.getBoundingClientRect().left,y:de.getBoundingClientRect().top}; -}else{ -return {x:0,y:0}; -} -} -}; -dojo._fixIeBiDiScrollLeft=function(_a4){ -var dd=d.doc; -if(d.isIE&&!d._isBodyLtr()){ -var de=dd.compatMode=="BackCompat"?dd.body:dd.documentElement; -return _a4+de.clientWidth-de.scrollWidth; -} -return _a4; -}; -dojo._abs=function(_a7,_a8){ -var db=d.body(),dh=d.body().parentNode,ret; -if(_a7["getBoundingClientRect"]){ -var _ac=_a7.getBoundingClientRect(); -ret={x:_ac.left,y:_ac.top}; -if(d.isFF>=3){ -var cs=gcs(dh); -ret.x-=px(dh,cs.marginLeft)+px(dh,cs.borderLeftWidth); -ret.y-=px(dh,cs.marginTop)+px(dh,cs.borderTopWidth); -} -if(d.isIE){ -var _ae=d._getIeDocumentElementOffset(); -ret.x-=_ae.x+(d.isQuirks?db.clientLeft:0); -ret.y-=_ae.y+(d.isQuirks?db.clientTop:0); -} -}else{ -ret={x:0,y:0}; -if(_a7["offsetParent"]){ -ret.x-=_9a(_a7,"scrollLeft"); -ret.y-=_9a(_a7,"scrollTop"); -var _af=_a7; -do{ -var n=_af.offsetLeft,t=_af.offsetTop; -ret.x+=isNaN(n)?0:n; -ret.y+=isNaN(t)?0:t; -cs=gcs(_af); -if(_af!=_a7){ -if(d.isFF){ -ret.x+=2*px(_af,cs.borderLeftWidth); -ret.y+=2*px(_af,cs.borderTopWidth); -}else{ -ret.x+=px(_af,cs.borderLeftWidth); -ret.y+=px(_af,cs.borderTopWidth); -} -} -if(d.isFF&&cs.position=="static"){ -var _b2=_af.parentNode; -while(_b2!=_af.offsetParent){ -var pcs=gcs(_b2); -if(pcs.position=="static"){ -ret.x+=px(_af,pcs.borderLeftWidth); -ret.y+=px(_af,pcs.borderTopWidth); -} -_b2=_b2.parentNode; -} -} -_af=_af.offsetParent; -}while((_af!=dh)&&_af); -}else{ -if(_a7.x&&_a7.y){ -ret.x+=isNaN(_a7.x)?0:_a7.x; -ret.y+=isNaN(_a7.y)?0:_a7.y; -} -} -} -if(_a8){ -var _b4=d._docScroll(); -ret.x+=_b4.x; -ret.y+=_b4.y; -} -return ret; -}; -dojo.coords=function(_b5,_b6){ -var n=d.byId(_b5),s=gcs(n),mb=d._getMarginBox(n,s); -var abs=d._abs(n,_b6); -mb.x=abs.x; -mb.y=abs.y; -return mb; -}; -var _bb=d.isIE<8; -var _bc=function(_bd){ -switch(_bd.toLowerCase()){ -case "tabindex": -return _bb?"tabIndex":"tabindex"; -case "readonly": -return "readOnly"; -case "class": -return "className"; -case "for": -case "htmlfor": -return _bb?"htmlFor":"for"; -default: -return _bd; -} -}; -var _be={colspan:"colSpan",enctype:"enctype",frameborder:"frameborder",method:"method",rowspan:"rowSpan",scrolling:"scrolling",shape:"shape",span:"span",type:"type",valuetype:"valueType",classname:"className",innerhtml:"innerHTML"}; -dojo.hasAttr=function(_bf,_c0){ -_bf=d.byId(_bf); -var _c1=_bc(_c0); -_c1=_c1=="htmlFor"?"for":_c1; -var _c2=_bf.getAttributeNode&&_bf.getAttributeNode(_c1); -return _c2?_c2.specified:false; -}; -var _c3={},_c4=0,_c5=dojo._scopeName+"attrid",_c6={col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}; -dojo.attr=function(_c7,_c8,_c9){ -_c7=d.byId(_c7); -var _ca=arguments.length; -if(_ca==2&&!d.isString(_c8)){ -for(var x in _c8){ -d.attr(_c7,x,_c8[x]); -} -return; -} -_c8=_bc(_c8); -if(_ca==3){ -if(d.isFunction(_c9)){ -var _cc=d.attr(_c7,_c5); -if(!_cc){ -_cc=_c4++; -d.attr(_c7,_c5,_cc); -} -if(!_c3[_cc]){ -_c3[_cc]={}; -} -var h=_c3[_cc][_c8]; -if(h){ -d.disconnect(h); -}else{ -try{ -delete _c7[_c8]; -} -catch(e){ -} -} -_c3[_cc][_c8]=d.connect(_c7,_c8,_c9); -}else{ -if(typeof _c9=="boolean"){ -_c7[_c8]=_c9; -}else{ -if(_c8==="style"&&!d.isString(_c9)){ -d.style(_c7,_c9); -}else{ -if(_c8=="className"){ -_c7.className=_c9; -}else{ -if(_c8==="innerHTML"){ -if(d.isIE&&_c7.tagName.toLowerCase() in _c6){ -d.empty(_c7); -_c7.appendChild(d._toDom(_c9,_c7.ownerDocument)); -}else{ -_c7[_c8]=_c9; -} -}else{ -_c7.setAttribute(_c8,_c9); -} -} -} -} -} -}else{ -var _ce=_be[_c8.toLowerCase()]; -if(_ce){ -return _c7[_ce]; -} -var _cf=_c7[_c8]; -return (typeof _cf=="boolean"||typeof _cf=="function")?_cf:(d.hasAttr(_c7,_c8)?_c7.getAttribute(_c8):null); -} -}; -dojo.removeAttr=function(_d0,_d1){ -d.byId(_d0).removeAttribute(_bc(_d1)); -}; -dojo.create=function(tag,_d3,_d4,pos){ -var doc=d.doc; -if(_d4){ -_d4=d.byId(_d4); -doc=_d4.ownerDocument; -} -if(d.isString(tag)){ -tag=doc.createElement(tag); -} -if(_d3){ -d.attr(tag,_d3); -} -if(_d4){ -d.place(tag,_d4,pos); -} -return tag; -}; -d.empty=d.isIE?function(_d7){ -_d7=d.byId(_d7); -for(var c;c=_d7.lastChild;){ -d.destroy(c); -} -}:function(_d9){ -d.byId(_d9).innerHTML=""; -}; -var _da={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},_db=/<\s*([\w\:]+)/,_dc={},_dd=0,_de="__"+d._scopeName+"ToDomId"; -for(var _df in _da){ -var tw=_da[_df]; -tw.pre=_df=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">"; -tw.post="</"+tw.reverse().join("></")+">"; -} -d._toDom=function(_e1,doc){ -doc=doc||d.doc; -var _e3=doc[_de]; -if(!_e3){ -doc[_de]=_e3=++_dd+""; -_dc[_e3]=doc.createElement("div"); -} -_e1+=""; -var _e4=_e1.match(_db),tag=_e4?_e4[1].toLowerCase():"",_e6=_dc[_e3],_e7,i,fc,df; -if(_e4&&_da[tag]){ -_e7=_da[tag]; -_e6.innerHTML=_e7.pre+_e1+_e7.post; -for(i=_e7.length;i;--i){ -_e6=_e6.firstChild; -} -}else{ -_e6.innerHTML=_e1; -} -if(_e6.childNodes.length==1){ -return _e6.removeChild(_e6.firstChild); -} -df=doc.createDocumentFragment(); -while(fc=_e6.firstChild){ -df.appendChild(fc); -} -return df; -}; -var _eb="className"; -dojo.hasClass=function(_ec,_ed){ -return ((" "+d.byId(_ec)[_eb]+" ").indexOf(" "+_ed+" ")>=0); -}; -dojo.addClass=function(_ee,_ef){ -_ee=d.byId(_ee); -var cls=_ee[_eb]; -if((" "+cls+" ").indexOf(" "+_ef+" ")<0){ -_ee[_eb]=cls+(cls?" ":"")+_ef; -} -}; -dojo.removeClass=function(_f1,_f2){ -_f1=d.byId(_f1); -var t=d.trim((" "+_f1[_eb]+" ").replace(" "+_f2+" "," ")); -if(_f1[_eb]!=t){ -_f1[_eb]=t; -} -}; -dojo.toggleClass=function(_f4,_f5,_f6){ -if(_f6===undefined){ -_f6=!d.hasClass(_f4,_f5); -} -d[_f6?"addClass":"removeClass"](_f4,_f5); -}; -})(); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/json.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/json.js b/components/camel-web/src/main/webapp/js/dojo/_base/json.js deleted file mode 100644 index 835114a..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/json.js +++ /dev/null @@ -1,81 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(!dojo._hasResource["dojo._base.json"]){ -dojo._hasResource["dojo._base.json"]=true; -dojo.provide("dojo._base.json"); -dojo.fromJson=function(_1){ -return eval("("+_1+")"); -}; -dojo._escapeString=function(_2){ -return ("\""+_2.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r"); -}; -dojo.toJsonIndentStr="\t"; -dojo.toJson=function(it,_4,_5){ -if(it===undefined){ -return "undefined"; -} -var _6=typeof it; -if(_6=="number"||_6=="boolean"){ -return it+""; -} -if(it===null){ -return "null"; -} -if(dojo.isString(it)){ -return dojo._escapeString(it); -} -var _7=arguments.callee; -var _8; -_5=_5||""; -var _9=_4?_5+dojo.toJsonIndentStr:""; -var tf=it.__json__||it.json; -if(dojo.isFunction(tf)){ -_8=tf.call(it); -if(it!==_8){ -return _7(_8,_4,_9); -} -} -if(it.nodeType&&it.cloneNode){ -throw new Error("Can't serialize DOM nodes"); -} -var _b=_4?" ":""; -var _c=_4?"\n":""; -if(dojo.isArray(it)){ -var _d=dojo.map(it,function(_e){ -var _f=_7(_e,_4,_9); -if(typeof _f!="string"){ -_f="undefined"; -} -return _c+_9+_f; -}); -return "["+_d.join(","+_b)+_c+_5+"]"; -} -if(_6=="function"){ -return null; -} -var _10=[],key; -for(key in it){ -var _12,val; -if(typeof key=="number"){ -_12="\""+key+"\""; -}else{ -if(typeof key=="string"){ -_12=dojo._escapeString(key); -}else{ -continue; -} -} -val=_7(it[key],_4,_9); -if(typeof val!="string"){ -continue; -} -_10.push(_c+_9+_12+":"+_b+val); -} -return "{"+_10.join(","+_b)+_c+_5+"}"; -}; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojo/_base/lang.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojo/_base/lang.js b/components/camel-web/src/main/webapp/js/dojo/_base/lang.js deleted file mode 100644 index bf7c635..0000000 --- a/components/camel-web/src/main/webapp/js/dojo/_base/lang.js +++ /dev/null @@ -1,138 +0,0 @@ -/* - Copyright (c) 2004-2009, 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 -*/ - - -if(!dojo._hasResource["dojo._base.lang"]){ -dojo._hasResource["dojo._base.lang"]=true; -dojo.provide("dojo._base.lang"); -dojo.isString=function(it){ -return !!arguments.length&&it!=null&&(typeof it=="string"||it instanceof String); -}; -dojo.isArray=function(it){ -return it&&(it instanceof Array||typeof it=="array"); -}; -dojo.isFunction=(function(){ -var _3=function(it){ -return it&&(typeof it=="function"||it instanceof Function); -}; -return dojo.isSafari?function(it){ -if(typeof it=="function"&&it=="[object NodeList]"){ -return false; -} -return _3(it); -}:_3; -})(); -dojo.isObject=function(it){ -return it!==undefined&&(it===null||typeof it=="object"||dojo.isArray(it)||dojo.isFunction(it)); -}; -dojo.isArrayLike=function(it){ -var d=dojo; -return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length)); -}; -dojo.isAlien=function(it){ -return it&&!dojo.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it)); -}; -dojo.extend=function(_a,_b){ -for(var i=1,l=arguments.length;i<l;i++){ -dojo._mixin(_a.prototype,arguments[i]); -} -return _a; -}; -dojo._hitchArgs=function(_e,_f){ -var pre=dojo._toArray(arguments,2); -var _11=dojo.isString(_f); -return function(){ -var _12=dojo._toArray(arguments); -var f=_11?(_e||dojo.global)[_f]:_f; -return f&&f.apply(_e||this,pre.concat(_12)); -}; -}; -dojo.hitch=function(_14,_15){ -if(arguments.length>2){ -return dojo._hitchArgs.apply(dojo,arguments); -} -if(!_15){ -_15=_14; -_14=null; -} -if(dojo.isString(_15)){ -_14=_14||dojo.global; -if(!_14[_15]){ -throw (["dojo.hitch: scope[\"",_15,"\"] is null (scope=\"",_14,"\")"].join("")); -} -return function(){ -return _14[_15].apply(_14,arguments||[]); -}; -} -return !_14?_15:function(){ -return _15.apply(_14,arguments||[]); -}; -}; -dojo.delegate=dojo._delegate=(function(){ -function TMP(){ -}; -return function(obj,_18){ -TMP.prototype=obj; -var tmp=new TMP(); -if(_18){ -dojo._mixin(tmp,_18); -} -return tmp; -}; -})(); -(function(){ -var _1a=function(obj,_1c,_1d){ -return (_1d||[]).concat(Array.prototype.slice.call(obj,_1c||0)); -}; -var _1e=function(obj,_20,_21){ -var arr=_21||[]; -for(var x=_20||0;x<obj.length;x++){ -arr.push(obj[x]); -} -return arr; -}; -dojo._toArray=dojo.isIE?function(obj){ -return ((obj.item)?_1e:_1a).apply(this,arguments); -}:_1a; -})(); -dojo.partial=function(_25){ -var arr=[null]; -return dojo.hitch.apply(dojo,arr.concat(dojo._toArray(arguments))); -}; -dojo.clone=function(o){ -if(!o){ -return o; -} -if(dojo.isArray(o)){ -var r=[]; -for(var i=0;i<o.length;++i){ -r.push(dojo.clone(o[i])); -} -return r; -} -if(!dojo.isObject(o)){ -return o; -} -if(o.nodeType&&o.cloneNode){ -return o.cloneNode(true); -} -if(o instanceof Date){ -return new Date(o.getTime()); -} -r=new o.constructor(); -for(i in o){ -if(!(i in r)||r[i]!=o[i]){ -r[i]=dojo.clone(o[i]); -} -} -return r; -}; -dojo.trim=String.prototype.trim?function(str){ -return str.trim(); -}:function(str){ -return str.replace(/^\s\s*/,"").replace(/\s\s*$/,""); -}; -}