http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/OpenSearchStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/OpenSearchStore.js b/components/camel-web/src/main/webapp/js/dojox/data/OpenSearchStore.js deleted file mode 100644 index 1bec283..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/OpenSearchStore.js +++ /dev/null @@ -1,216 +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["dojox.data.OpenSearchStore"]){ -dojo._hasResource["dojox.data.OpenSearchStore"]=true; -dojo.provide("dojox.data.OpenSearchStore"); -dojo.require("dojo.data.util.simpleFetch"); -dojo.require("dojox.xml.DomParser"); -dojo.require("dojox.xml.parser"); -dojo.experimental("dojox.data.OpenSearchStore"); -dojo.declare("dojox.data.OpenSearchStore",null,{constructor:function(_1){ -if(_1){ -this.label=_1.label; -this.url=_1.url; -this.itemPath=_1.itemPath; -} -var _2=dojo.xhrGet({url:this.url,handleAs:"xml",sync:true}); -_2.addCallback(this,"_processOsdd"); -_2.addErrback(function(){ -throw new Error("Unable to load OpenSearch Description document from ".args.url); -}); -},url:"",itemPath:"",_storeRef:"_S",urlElement:null,iframeElement:null,ATOM_CONTENT_TYPE:3,ATOM_CONTENT_TYPE_STRING:"atom",RSS_CONTENT_TYPE:2,RSS_CONTENT_TYPE_STRING:"rss",XML_CONTENT_TYPE:1,XML_CONTENT_TYPE_STRING:"xml",_assertIsItem:function(_3){ -if(!this.isItem(_3)){ -throw new Error("dojox.data.OpenSearchStore: a function was passed an item argument that was not an item"); -} -},_assertIsAttribute:function(_4){ -if(typeof _4!=="string"){ -throw new Error("dojox.data.OpenSearchStore: a function was passed an attribute argument that was not an attribute name string"); -} -},getFeatures:function(){ -return {"dojo.data.api.Read":true}; -},getValue:function(_5,_6,_7){ -var _8=this.getValues(_5,_6); -if(_8){ -return _8[0]; -} -return _7; -},getAttributes:function(_9){ -return ["content"]; -},hasAttribute:function(_a,_b){ -if(this.getValue(_a,_b)){ -return true; -} -return false; -},isItemLoaded:function(_c){ -return this.isItem(_c); -},loadItem:function(_d){ -},getLabel:function(_e){ -return undefined; -},getLabelAttributes:function(_f){ -return null; -},containsValue:function(_10,_11,_12){ -var _13=this.getValues(_10,_11); -for(var i=0;i<_13.length;i++){ -if(_13[i]===_12){ -return true; -} -} -return false; -},getValues:function(_15,_16){ -this._assertIsItem(_15); -this._assertIsAttribute(_16); -var _17=this.processItem(_15,_16); -if(_17){ -return [_17]; -} -return undefined; -},isItem:function(_18){ -if(_18&&_18[this._storeRef]===this){ -return true; -} -return false; -},close:function(_19){ -},process:function(_1a){ -return this["_processOSD"+this.contentType](_1a); -},processItem:function(_1b,_1c){ -return this["_processItem"+this.contentType](_1b.node,_1c); -},_createSearchUrl:function(_1d){ -var _1e=this.urlElement.attributes.getNamedItem("template").nodeValue; -var _1f=this.urlElement.attributes; -var _20=_1e.indexOf("{searchTerms}"); -_1e=_1e.substring(0,_20)+_1d.query.searchTerms+_1e.substring(_20+13); -dojo.forEach([{"name":"count","test":_1d.count,"def":"10"},{"name":"startIndex","test":_1d.start,"def":this.urlElement.attributes.getNamedItem("indexOffset")?this.urlElement.attributes.getNamedItem("indexOffset").nodeValue:0},{"name":"startPage","test":_1d.startPage,"def":this.urlElement.attributes.getNamedItem("pageOffset")?this.urlElement.attributes.getNamedItem("pageOffset").nodeValue:0},{"name":"language","test":_1d.language,"def":"*"},{"name":"inputEncoding","test":_1d.inputEncoding,"def":"UTF-8"},{"name":"outputEncoding","test":_1d.outputEncoding,"def":"UTF-8"}],function(_21){ -_1e=_1e.replace("{"+_21.name+"}",_21.test||_21.def); -_1e=_1e.replace("{"+_21.name+"?}",_21.test||_21.def); -}); -return _1e; -},_fetchItems:function(_22,_23,_24){ -if(!_22.query){ -_22.query={}; -} -var _25=this; -var url=this._createSearchUrl(_22); -var _27={url:url,preventCache:true}; -var xhr=dojo.xhrGet(_27); -xhr.addErrback(function(_29){ -_24(_29,_22); -}); -xhr.addCallback(function(_2a){ -var _2b=[]; -if(_2a){ -_2b=_25.process(_2a); -for(var i=0;i<_2b.length;i++){ -_2b[i]={node:_2b[i]}; -_2b[i][_25._storeRef]=_25; -} -} -_23(_2b,_22); -}); -},_processOSDxml:function(_2d){ -var div=dojo.doc.createElement("div"); -div.innerHTML=_2d; -return dojo.query(this.itemPath,div); -},_processItemxml:function(_2f,_30){ -if(_30==="content"){ -return _2f.innerHTML; -} -return undefined; -},_processOSDatom:function(_31){ -return this._processOSDfeed(_31,"entry"); -},_processItematom:function(_32,_33){ -return this._processItemfeed(_32,_33,"content"); -},_processOSDrss:function(_34){ -return this._processOSDfeed(_34,"item"); -},_processItemrss:function(_35,_36){ -return this._processItemfeed(_35,_36,"description"); -},_processOSDfeed:function(_37,_38){ -_37=dojox.xml.parser.parse(_37); -var _39=[]; -var _3a=_37.getElementsByTagName(_38); -for(var i=0;i<_3a.length;i++){ -_39.push(_3a.item(i)); -} -return _39; -},_processItemfeed:function(_3c,_3d,_3e){ -if(_3d==="content"){ -var _3f=_3c.getElementsByTagName(_3e).item(0); -return this._getNodeXml(_3f,true); -} -return undefined; -},_getNodeXml:function(_40,_41){ -var i; -switch(_40.nodeType){ -case 1: -var xml=[]; -if(!_41){ -xml.push("<"+_40.tagName); -var _44; -for(i=0;i<_40.attributes.length;i++){ -_44=_40.attributes.item(i); -xml.push(" "+_44.nodeName+"=\""+_44.nodeValue+"\""); -} -xml.push(">"); -} -for(i=0;i<_40.childNodes.length;i++){ -xml.push(this._getNodeXml(_40.childNodes.item(i))); -} -if(!_41){ -xml.push("</"+_40.tagName+">\n"); -} -return xml.join(""); -case 3: -case 4: -return _40.nodeValue; -} -return undefined; -},_processOsdd:function(doc){ -var _46=doc.getElementsByTagName("Url"); -var _47=[]; -var _48; -var i; -for(i=0;i<_46.length;i++){ -_48=_46[i].attributes.getNamedItem("type").nodeValue; -switch(_48){ -case "application/rss+xml": -_47[i]=this.RSS_CONTENT_TYPE; -break; -case "application/atom+xml": -_47[i]=this.ATOM_CONTENT_TYPE; -break; -default: -_47[i]=this.XML_CONTENT_TYPE; -break; -} -} -var _4a=0; -var _4b=_47[0]; -for(i=1;i<_46.length;i++){ -if(_47[i]>_4b){ -_4a=i; -_4b=_47[i]; -} -} -var _4c=_46[_4a].nodeName.toLowerCase(); -if(_4c=="url"){ -var _4d=_46[_4a].attributes; -this.urlElement=_46[_4a]; -switch(_47[_4a]){ -case this.ATOM_CONTENT_TYPE: -this.contentType=this.ATOM_CONTENT_TYPE_STRING; -break; -case this.RSS_CONTENT_TYPE: -this.contentType=this.RSS_CONTENT_TYPE_STRING; -break; -case this.XML_CONTENT_TYPE: -this.contentType=this.XML_CONTENT_TYPE_STRING; -break; -} -} -}}); -dojo.extend(dojox.data.OpenSearchStore,dojo.data.util.simpleFetch); -}
http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/OpmlStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/OpmlStore.js b/components/camel-web/src/main/webapp/js/dojox/data/OpmlStore.js deleted file mode 100644 index 2da8bd6..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/OpmlStore.js +++ /dev/null @@ -1,326 +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["dojox.data.OpmlStore"]){ -dojo._hasResource["dojox.data.OpmlStore"]=true; -dojo.provide("dojox.data.OpmlStore"); -dojo.require("dojo.data.util.filter"); -dojo.require("dojo.data.util.simpleFetch"); -dojo.declare("dojox.data.OpmlStore",null,{constructor:function(_1){ -this._xmlData=null; -this._arrayOfTopLevelItems=[]; -this._arrayOfAllItems=[]; -this._metadataNodes=null; -this._loadFinished=false; -this.url=_1.url; -this._opmlData=_1.data; -if(_1.label){ -this.label=_1.label; -} -this._loadInProgress=false; -this._queuedFetches=[]; -this._identityMap={}; -this._identCount=0; -this._idProp="_I"; -},label:"text",url:"",_assertIsItem:function(_2){ -if(!this.isItem(_2)){ -throw new Error("dojo.data.OpmlStore: a function was passed an item argument that was not an item"); -} -},_assertIsAttribute:function(_3){ -if(!dojo.isString(_3)){ -throw new Error("dojox.data.OpmlStore: a function was passed an attribute argument that was not an attribute object nor an attribute name string"); -} -},_removeChildNodesThatAreNotElementNodes:function(_4,_5){ -var _6=_4.childNodes; -if(_6.length===0){ -return; -} -var _7=[]; -var i,_9; -for(i=0;i<_6.length;++i){ -_9=_6[i]; -if(_9.nodeType!=1){ -_7.push(_9); -} -} -for(i=0;i<_7.length;++i){ -_9=_7[i]; -_4.removeChild(_9); -} -if(_5){ -for(i=0;i<_6.length;++i){ -_9=_6[i]; -this._removeChildNodesThatAreNotElementNodes(_9,_5); -} -} -},_processRawXmlTree:function(_a){ -this._loadFinished=true; -this._xmlData=_a; -var _b=_a.getElementsByTagName("head"); -var _c=_b[0]; -if(_c){ -this._removeChildNodesThatAreNotElementNodes(_c); -this._metadataNodes=_c.childNodes; -} -var _d=_a.getElementsByTagName("body"); -var _e=_d[0]; -if(_e){ -this._removeChildNodesThatAreNotElementNodes(_e,true); -var _f=_d[0].childNodes; -for(var i=0;i<_f.length;++i){ -var _11=_f[i]; -if(_11.tagName=="outline"){ -this._identityMap[this._identCount]=_11; -this._identCount++; -this._arrayOfTopLevelItems.push(_11); -this._arrayOfAllItems.push(_11); -this._checkChildNodes(_11); -} -} -} -},_checkChildNodes:function(_12){ -if(_12.firstChild){ -for(var i=0;i<_12.childNodes.length;i++){ -var _14=_12.childNodes[i]; -if(_14.tagName=="outline"){ -this._identityMap[this._identCount]=_14; -this._identCount++; -this._arrayOfAllItems.push(_14); -this._checkChildNodes(_14); -} -} -} -},_getItemsArray:function(_15){ -if(_15&&_15.deep){ -return this._arrayOfAllItems; -} -return this._arrayOfTopLevelItems; -},getValue:function(_16,_17,_18){ -this._assertIsItem(_16); -this._assertIsAttribute(_17); -if(_17=="children"){ -return (_16.firstChild||_18); -}else{ -var _19=_16.getAttribute(_17); -return (_19!==undefined)?_19:_18; -} -},getValues:function(_1a,_1b){ -this._assertIsItem(_1a); -this._assertIsAttribute(_1b); -var _1c=[]; -if(_1b=="children"){ -for(var i=0;i<_1a.childNodes.length;++i){ -_1c.push(_1a.childNodes[i]); -} -}else{ -if(_1a.getAttribute(_1b)!==null){ -_1c.push(_1a.getAttribute(_1b)); -} -} -return _1c; -},getAttributes:function(_1e){ -this._assertIsItem(_1e); -var _1f=[]; -var _20=_1e; -var _21=_20.attributes; -for(var i=0;i<_21.length;++i){ -var _23=_21.item(i); -_1f.push(_23.nodeName); -} -if(_20.childNodes.length>0){ -_1f.push("children"); -} -return _1f; -},hasAttribute:function(_24,_25){ -return (this.getValues(_24,_25).length>0); -},containsValue:function(_26,_27,_28){ -var _29=undefined; -if(typeof _28==="string"){ -_29=dojo.data.util.filter.patternToRegExp(_28,false); -} -return this._containsValue(_26,_27,_28,_29); -},_containsValue:function(_2a,_2b,_2c,_2d){ -var _2e=this.getValues(_2a,_2b); -for(var i=0;i<_2e.length;++i){ -var _30=_2e[i]; -if(typeof _30==="string"&&_2d){ -return (_30.match(_2d)!==null); -}else{ -if(_2c===_30){ -return true; -} -} -} -return false; -},isItem:function(_31){ -return (_31&&_31.nodeType==1&&_31.tagName=="outline"&&_31.ownerDocument===this._xmlData); -},isItemLoaded:function(_32){ -return this.isItem(_32); -},loadItem:function(_33){ -},getLabel:function(_34){ -if(this.isItem(_34)){ -return this.getValue(_34,this.label); -} -return undefined; -},getLabelAttributes:function(_35){ -return [this.label]; -},_fetchItems:function(_36,_37,_38){ -var _39=this; -var _3a=function(_3b,_3c){ -var _3d=null; -if(_3b.query){ -_3d=[]; -var _3e=_3b.queryOptions?_3b.queryOptions.ignoreCase:false; -var _3f={}; -for(var key in _3b.query){ -var _41=_3b.query[key]; -if(typeof _41==="string"){ -_3f[key]=dojo.data.util.filter.patternToRegExp(_41,_3e); -} -} -for(var i=0;i<_3c.length;++i){ -var _43=true; -var _44=_3c[i]; -for(var key in _3b.query){ -var _41=_3b.query[key]; -if(!_39._containsValue(_44,key,_41,_3f[key])){ -_43=false; -} -} -if(_43){ -_3d.push(_44); -} -} -}else{ -if(_3c.length>0){ -_3d=_3c.slice(0,_3c.length); -} -} -_37(_3d,_3b); -}; -if(this._loadFinished){ -_3a(_36,this._getItemsArray(_36.queryOptions)); -}else{ -if(this._loadInProgress){ -this._queuedFetches.push({args:_36,filter:_3a}); -}else{ -if(this.url!==""){ -this._loadInProgress=true; -var _45={url:_39.url,handleAs:"xml"}; -var _46=dojo.xhrGet(_45); -_46.addCallback(function(_47){ -_39._processRawXmlTree(_47); -_3a(_36,_39._getItemsArray(_36.queryOptions)); -_39._handleQueuedFetches(); -}); -_46.addErrback(function(_48){ -throw _48; -}); -}else{ -if(this._opmlData){ -this._processRawXmlTree(this._opmlData); -this._opmlData=null; -_3a(_36,this._getItemsArray(_36.queryOptions)); -}else{ -throw new Error("dojox.data.OpmlStore: No OPML source data was provided as either URL or XML data input."); -} -} -} -} -},getFeatures:function(){ -var _49={"dojo.data.api.Read":true,"dojo.data.api.Identity":true}; -return _49; -},getIdentity:function(_4a){ -if(this.isItem(_4a)){ -for(var i in this._identityMap){ -if(this._identityMap[i]===_4a){ -return i; -} -} -} -return null; -},fetchItemByIdentity:function(_4c){ -if(!this._loadFinished){ -var _4d=this; -if(this.url!==""){ -if(this._loadInProgress){ -this._queuedFetches.push({args:_4c}); -}else{ -this._loadInProgress=true; -var _4e={url:_4d.url,handleAs:"xml"}; -var _4f=dojo.xhrGet(_4e); -_4f.addCallback(function(_50){ -var _51=_4c.scope?_4c.scope:dojo.global; -try{ -_4d._processRawXmlTree(_50); -var _52=_4d._identityMap[_4c.identity]; -if(!_4d.isItem(_52)){ -_52=null; -} -if(_4c.onItem){ -_4c.onItem.call(_51,_52); -} -_4d._handleQueuedFetches(); -} -catch(error){ -if(_4c.onError){ -_4c.onError.call(_51,error); -} -} -}); -_4f.addErrback(function(_53){ -this._loadInProgress=false; -if(_4c.onError){ -var _54=_4c.scope?_4c.scope:dojo.global; -_4c.onError.call(_54,_53); -} -}); -} -}else{ -if(this._opmlData){ -this._processRawXmlTree(this._opmlData); -this._opmlData=null; -var _55=this._identityMap[_4c.identity]; -if(!_4d.isItem(_55)){ -_55=null; -} -if(_4c.onItem){ -var _56=_4c.scope?_4c.scope:dojo.global; -_4c.onItem.call(_56,_55); -} -} -} -}else{ -var _55=this._identityMap[_4c.identity]; -if(!this.isItem(_55)){ -_55=null; -} -if(_4c.onItem){ -var _56=_4c.scope?_4c.scope:dojo.global; -_4c.onItem.call(_56,_55); -} -} -},getIdentityAttributes:function(_57){ -return null; -},_handleQueuedFetches:function(){ -if(this._queuedFetches.length>0){ -for(var i=0;i<this._queuedFetches.length;i++){ -var _59=this._queuedFetches[i]; -var _5a=_59.args; -var _5b=_59.filter; -if(_5b){ -_5b(_5a,this._getItemsArray(_5a.queryOptions)); -}else{ -this.fetchItemByIdentity(_5a); -} -} -this._queuedFetches=[]; -} -},close:function(_5c){ -}}); -dojo.extend(dojox.data.OpmlStore,dojo.data.util.simpleFetch); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/PersevereStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/PersevereStore.js b/components/camel-web/src/main/webapp/js/dojox/data/PersevereStore.js deleted file mode 100644 index b96e4f1..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/PersevereStore.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["dojox.data.PersevereStore"]){ -dojo._hasResource["dojox.data.PersevereStore"]=true; -dojo.provide("dojox.data.PersevereStore"); -dojo.require("dojox.data.JsonQueryRestStore"); -dojo.require("dojox.rpc.Client"); -dojox.json.ref.serializeFunctions=true; -dojo.declare("dojox.data.PersevereStore",dojox.data.JsonQueryRestStore,{useFullIdInQueries:true,jsonQueryPagination:false}); -dojox.data.PersevereStore.getStores=function(_1,_2){ -_1=(_1&&(_1.match(/\/$/)?_1:(_1+"/")))||"/"; -if(_1.match(/^\w*:\/\//)){ -dojo.require("dojox.io.xhrScriptPlugin"); -dojox.io.xhrScriptPlugin(_1,"callback",dojox.io.xhrPlugins.fullHttpAdapter); -} -var _3=dojo.xhr; -dojo.xhr=function(_4,_5){ -(_5.headers=_5.headers||{})["Server-Methods"]=false; -return _3.apply(dojo,arguments); -}; -var _6=dojox.rpc.Rest(_1,true); -dojox.rpc._sync=_2; -var _7=_6("Class/"); -var _8; -var _9={}; -var _a=0; -_7.addCallback(function(_b){ -dojox.json.ref.resolveJson(_b,{index:dojox.rpc.Rest._index,idPrefix:"/Class/",assignAbsoluteIds:true}); -function _c(_d){ -if(_d["extends"]&&_d["extends"].prototype){ -if(!_d.prototype||!_d.prototype.isPrototypeOf(_d["extends"].prototype)){ -_c(_d["extends"]); -dojox.rpc.Rest._index[_d.prototype.__id]=_d.prototype=dojo.mixin(dojo.delegate(_d["extends"].prototype),_d.prototype); -} -} -}; -function _e(_f,_10){ -if(_f&&_10){ -for(var j in _f){ -var _12=_f[j]; -if(_12.runAt=="server"&&!_10[j]){ -_10[j]=(function(_13){ -return function(){ -var _14=dojo.rawXhrPost({url:this.__id,postData:dojo.toJson({method:_13,id:_a++,params:dojo._toArray(arguments)}),handleAs:"json"}); -_14.addCallback(function(_15){ -return _15.error?new Error(_15.error):_15.result; -}); -return _14; -}; -})(j); -} -} -} -}; -for(var i in _b){ -if(typeof _b[i]=="object"){ -var _17=_b[i]; -_c(_17); -_e(_17.methods,_17.prototype=_17.prototype||{}); -_e(_17.staticMethods,_17); -_9[_b[i].id]=new dojox.data.PersevereStore({target:new dojo._Url(_1,_b[i].id)+"",schema:_17}); -} -} -return (_8=_9); -}); -dojo.xhr=_3; -return _2?_8:_7; -}; -dojox.data.PersevereStore.addProxy=function(){ -dojo.require("dojox.io.xhrPlugins"); -dojox.io.xhrPlugins.addProxy("/proxy/"); -}; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/PicasaStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/PicasaStore.js b/components/camel-web/src/main/webapp/js/dojox/data/PicasaStore.js deleted file mode 100644 index e6c42c9..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/PicasaStore.js +++ /dev/null @@ -1,161 +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["dojox.data.PicasaStore"]){ -dojo._hasResource["dojox.data.PicasaStore"]=true; -dojo.provide("dojox.data.PicasaStore"); -dojo.require("dojo.data.util.simpleFetch"); -dojo.require("dojo.io.script"); -dojo.require("dojo.date.stamp"); -dojo.declare("dojox.data.PicasaStore",null,{constructor:function(_1){ -if(_1&&_1.label){ -this.label=_1.label; -} -},_picasaUrl:"http://picasaweb.google.com/data/feed/api/all",_storeRef:"_S",label:"title",_assertIsItem:function(_2){ -if(!this.isItem(_2)){ -throw new Error("dojox.data.PicasaStore: a function was passed an item argument that was not an item"); -} -},_assertIsAttribute:function(_3){ -if(typeof _3!=="string"){ -throw new Error("dojox.data.PicasaStore: a function was passed an attribute argument that was not an attribute name string"); -} -},getFeatures:function(){ -return {"dojo.data.api.Read":true}; -},getValue:function(_4,_5,_6){ -var _7=this.getValues(_4,_5); -if(_7&&_7.length>0){ -return _7[0]; -} -return _6; -},getAttributes:function(_8){ -return ["id","published","updated","category","title$type","title","summary$type","summary","rights$type","rights","link","author","gphoto$id","gphoto$name","location"]; -},hasAttribute:function(_9,_a){ -if(this.getValue(_9,_a)){ -return true; -} -return false; -},isItemLoaded:function(_b){ -return this.isItem(_b); -},loadItem:function(_c){ -},getLabel:function(_d){ -return this.getValue(_d,this.label); -},getLabelAttributes:function(_e){ -return [this.label]; -},containsValue:function(_f,_10,_11){ -var _12=this.getValues(_f,_10); -for(var i=0;i<_12.length;i++){ -if(_12[i]===_11){ -return true; -} -} -return false; -},getValues:function(_14,_15){ -this._assertIsItem(_14); -this._assertIsAttribute(_15); -if(_15==="title"){ -return [this._unescapeHtml(_14.title)]; -}else{ -if(_15==="author"){ -return [this._unescapeHtml(_14.author[0].name)]; -}else{ -if(_15==="datePublished"){ -return [dojo.date.stamp.fromISOString(_14.published)]; -}else{ -if(_15==="dateTaken"){ -return [dojo.date.stamp.fromISOString(_14.date_taken)]; -}else{ -if(_15==="imageUrlSmall"){ -return [_14.media.thumbnail[1].url]; -}else{ -if(_15==="imageUrl"){ -return [_14.content$src]; -}else{ -if(_15==="imageUrlMedium"){ -return [_14.media.thumbnail[2].url]; -}else{ -if(_15==="link"){ -return [_14.link[1]]; -}else{ -if(_15==="tags"){ -return _14.tags.split(" "); -}else{ -if(_15==="description"){ -return [this._unescapeHtml(_14.summary)]; -} -} -} -} -} -} -} -} -} -} -return []; -},isItem:function(_16){ -if(_16&&_16[this._storeRef]===this){ -return true; -} -return false; -},close:function(_17){ -},_fetchItems:function(_18,_19,_1a){ -if(!_18.query){ -_18.query={}; -} -var _1b={alt:"jsonm",pp:"1",psc:"G"}; -_1b["start-index"]="1"; -if(_18.query.start){ -_1b["start-index"]=_18.query.start; -} -if(_18.query.tags){ -_1b.q=_18.query.tags; -} -if(_18.query.userid){ -_1b.uname=_18.query.userid; -} -if(_18.query.userids){ -_1b.ids=_18.query.userids; -} -if(_18.query.lang){ -_1b.hl=_18.query.lang; -} -if(_18.count){ -_1b["max-results"]=_18.count; -}else{ -_1b["max-results"]="20"; -} -var _1c=this; -var _1d=null; -var _1e=function(_1f){ -if(_1d!==null){ -dojo.disconnect(_1d); -} -_19(_1c._processPicasaData(_1f),_18); -}; -var _20={url:this._picasaUrl,content:_1b,callbackParamName:"callback",handle:_1e}; -var _21=dojo.io.script.get(_20); -_21.addErrback(function(_22){ -dojo.disconnect(_1d); -_1a(_22,_18); -}); -},_processPicasaData:function(_23){ -var _24=[]; -if(_23.feed){ -_24=_23.feed.entry; -for(var i=0;i<_24.length;i++){ -var _26=_24[i]; -_26[this._storeRef]=this; -} -} -return _24; -},_unescapeHtml:function(str){ -str=str.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,"\""); -str=str.replace(/'/gm,"'"); -return str; -}}); -dojo.extend(dojox.data.PicasaStore,dojo.data.util.simpleFetch); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/QueryReadStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/QueryReadStore.js b/components/camel-web/src/main/webapp/js/dojox/data/QueryReadStore.js deleted file mode 100644 index 427d6ab..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/QueryReadStore.js +++ /dev/null @@ -1,255 +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["dojox.data.QueryReadStore"]){ -dojo._hasResource["dojox.data.QueryReadStore"]=true; -dojo.provide("dojox.data.QueryReadStore"); -dojo.require("dojo.string"); -dojo.require("dojo.data.util.sorter"); -dojo.declare("dojox.data.QueryReadStore",null,{url:"",requestMethod:"get",_className:"dojox.data.QueryReadStore",_items:[],_lastServerQuery:null,_numRows:-1,lastRequestHash:null,doClientPaging:false,doClientSorting:false,_itemsByIdentity:null,_identifier:null,_features:{"dojo.data.api.Read":true,"dojo.data.api.Identity":true},_labelAttr:"label",constructor:function(_1){ -dojo.mixin(this,_1); -},getValue:function(_2,_3,_4){ -this._assertIsItem(_2); -if(!dojo.isString(_3)){ -throw new Error(this._className+".getValue(): Invalid attribute, string expected!"); -} -if(!this.hasAttribute(_2,_3)){ -if(_4){ -return _4; -} - -} -return _2.i[_3]; -},getValues:function(_5,_6){ -this._assertIsItem(_5); -var _7=[]; -if(this.hasAttribute(_5,_6)){ -_7.push(_5.i[_6]); -} -return _7; -},getAttributes:function(_8){ -this._assertIsItem(_8); -var _9=[]; -for(var i in _8.i){ -_9.push(i); -} -return _9; -},hasAttribute:function(_b,_c){ -return this.isItem(_b)&&typeof _b.i[_c]!="undefined"; -},containsValue:function(_d,_e,_f){ -var _10=this.getValues(_d,_e); -var len=_10.length; -for(var i=0;i<len;i++){ -if(_10[i]==_f){ -return true; -} -} -return false; -},isItem:function(_13){ -if(_13){ -return typeof _13.r!="undefined"&&_13.r==this; -} -return false; -},isItemLoaded:function(_14){ -return this.isItem(_14); -},loadItem:function(_15){ -if(this.isItemLoaded(_15.item)){ -return; -} -},fetch:function(_16){ -_16=_16||{}; -if(!_16.store){ -_16.store=this; -} -var _17=this; -var _18=function(_19,_1a){ -if(_1a.onError){ -var _1b=_1a.scope||dojo.global; -_1a.onError.call(_1b,_19,_1a); -} -}; -var _1c=function(_1d,_1e,_1f){ -var _20=_1e.abort||null; -var _21=false; -var _22=_1e.start?_1e.start:0; -if(_17.doClientPaging==false){ -_22=0; -} -var _23=_1e.count?(_22+_1e.count):_1d.length; -_1e.abort=function(){ -_21=true; -if(_20){ -_20.call(_1e); -} -}; -var _24=_1e.scope||dojo.global; -if(!_1e.store){ -_1e.store=_17; -} -if(_1e.onBegin){ -_1e.onBegin.call(_24,_1f,_1e); -} -if(_1e.sort&&_17.doClientSorting){ -_1d.sort(dojo.data.util.sorter.createSortFunction(_1e.sort,_17)); -} -if(_1e.onItem){ -for(var i=_22;(i<_1d.length)&&(i<_23);++i){ -var _26=_1d[i]; -if(!_21){ -_1e.onItem.call(_24,_26,_1e); -} -} -} -if(_1e.onComplete&&!_21){ -var _27=null; -if(!_1e.onItem){ -_27=_1d.slice(_22,_23); -} -_1e.onComplete.call(_24,_27,_1e); -} -}; -this._fetchItems(_16,_1c,_18); -return _16; -},getFeatures:function(){ -return this._features; -},close:function(_28){ -},getLabel:function(_29){ -if(this._labelAttr&&this.isItem(_29)){ -return this.getValue(_29,this._labelAttr); -} -return undefined; -},getLabelAttributes:function(_2a){ -if(this._labelAttr){ -return [this._labelAttr]; -} -return null; -},_xhrFetchHandler:function(_2b,_2c,_2d,_2e){ -_2b=this._filterResponse(_2b); -if(_2b.label){ -this._labelAttr=_2b.label; -} -var _2f=_2b.numRows||-1; -this._items=[]; -dojo.forEach(_2b.items,function(e){ -this._items.push({i:e,r:this}); -},this); -var _31=_2b.identifier; -this._itemsByIdentity={}; -if(_31){ -this._identifier=_31; -var i; -for(i=0;i<this._items.length;++i){ -var _33=this._items[i].i; -var _34=_33[_31]; -if(!this._itemsByIdentity[_34]){ -this._itemsByIdentity[_34]=_33; -}else{ -throw new Error(this._className+": The json data as specified by: ["+this.url+"] is malformed. Items within the list have identifier: ["+_31+"]. Value collided: ["+_34+"]"); -} -} -}else{ -this._identifier=Number; -for(i=0;i<this._items.length;++i){ -this._items[i].n=i; -} -} -_2f=this._numRows=(_2f===-1)?this._items.length:_2f; -_2d(this._items,_2c,_2f); -this._numRows=_2f; -},_fetchItems:function(_35,_36,_37){ -var _38=_35.serverQuery||_35.query||{}; -if(!this.doClientPaging){ -_38.start=_35.start||0; -if(_35.count){ -_38.count=_35.count; -} -} -if(!this.doClientSorting){ -if(_35.sort){ -var _39=_35.sort[0]; -if(_39&&_39.attribute){ -var _3a=_39.attribute; -if(_39.descending){ -_3a="-"+_3a; -} -_38.sort=_3a; -} -} -} -if(this.doClientPaging&&this._lastServerQuery!==null&&dojo.toJson(_38)==dojo.toJson(this._lastServerQuery)){ -this._numRows=(this._numRows===-1)?this._items.length:this._numRows; -_36(this._items,_35,this._numRows); -}else{ -var _3b=this.requestMethod.toLowerCase()=="post"?dojo.xhrPost:dojo.xhrGet; -var _3c=_3b({url:this.url,handleAs:"json-comment-optional",content:_38}); -_3c.addCallback(dojo.hitch(this,function(_3d){ -this._xhrFetchHandler(_3d,_35,_36,_37); -})); -_3c.addErrback(function(_3e){ -_37(_3e,_35); -}); -this.lastRequestHash=new Date().getTime()+"-"+String(Math.random()).substring(2); -this._lastServerQuery=dojo.mixin({},_38); -} -},_filterResponse:function(_3f){ -return _3f; -},_assertIsItem:function(_40){ -if(!this.isItem(_40)){ -throw new Error(this._className+": Invalid item argument."); -} -},_assertIsAttribute:function(_41){ -if(typeof _41!=="string"){ -throw new Error(this._className+": Invalid attribute argument ('"+_41+"')."); -} -},fetchItemByIdentity:function(_42){ -if(this._itemsByIdentity){ -var _43=this._itemsByIdentity[_42.identity]; -if(!(_43===undefined)){ -if(_42.onItem){ -var _44=_42.scope?_42.scope:dojo.global; -_42.onItem.call(_44,{i:_43,r:this}); -} -return; -} -} -var _45=function(_46,_47){ -var _48=_42.scope?_42.scope:dojo.global; -if(_42.onError){ -_42.onError.call(_48,_46); -} -}; -var _49=function(_4a,_4b){ -var _4c=_42.scope?_42.scope:dojo.global; -try{ -var _4d=null; -if(_4a&&_4a.length==1){ -_4d=_4a[0]; -} -if(_42.onItem){ -_42.onItem.call(_4c,_4d); -} -} -catch(error){ -if(_42.onError){ -_42.onError.call(_4c,error); -} -} -}; -var _4e={serverQuery:{id:_42.identity}}; -this._fetchItems(_4e,_49,_45); -},getIdentity:function(_4f){ -var _50=null; -if(this._identifier===Number){ -_50=_4f.n; -}else{ -_50=_4f.i[this._identifier]; -} -return _50; -},getIdentityAttributes:function(_51){ -return [this._identifier]; -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/README ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/README b/components/camel-web/src/main/webapp/js/dojox/data/README deleted file mode 100644 index 4641983..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/README +++ /dev/null @@ -1,127 +0,0 @@ -------------------------------------------------------------------------------- -DojoX Data -------------------------------------------------------------------------------- -Version 1.1 -Release date: 03/18/2008 -------------------------------------------------------------------------------- -Project state: production -------------------------------------------------------------------------------- -Project authors - Jared Jurkiewicz (jared.jurkiew...@gmail.com) (FileStore, HtmlStore, XmlStore, FlickrStore, CssRuleStore, CssClassStore, AppStore, others). - Shane O'Sullivan (shaneosulliv...@gmail.com) (FlickrRestStore, AtomReadStore, GoogleSeachStore, GoogleFeedStore) - Wolfram Kriesing (wolf...@kriesing.de) (QueryReadStore) - Dustin Machi (dma...@dojotolkit.org) (jsonPathStore); - Russell Jones (KeyValueStore) (CLA) - Benjamin Schell (KeyValueStore, CssRuleStore, CssClassStore, AppStore, OpenSearchStore) (Corporate CLA) - Kurt Stutsman (k...@snaplogic.org) (SnapLogicStore) - Kris Zyp (k...@dojotoolkit.org) (JsonRestStore, PersevereStore, S3JsonRestStore, CouchDBRestStore) - Frank Fortson (frank.fort...@equorum.com) (AndOrReadStore, AndOrWriteStore) - - -------------------------------------------------------------------------------- -Project description - -The DojoX Data project is a container for extensions and extra example stores -that implement the dojo.data APIs. It may also contain utility functions for -working with specific types of data. - -------------------------------------------------------------------------------- -Dependencies: - -DojoX Data has dependencies on core dojo (dojo.data), dojox.xml for XmlStore -and dojox.data.dom(deprecated) and the D.O.H. unit test framework -------------------------------------------------------------------------------- -Documentation: - -See the Dojo API tool (http://dojotoolkit.org/api) -------------------------------------------------------------------------------- -Contributions: - -For contributions to be committed into the dojox repository, the datastore -should have basic unit tests that exercise the API's that the store declares it -implements. Documentation and demos are a plus, but unit tests are required -to be committed into this sub-package. This is necessary to help keep the -provided datastores as stable as possible. - -------------------------------------------------------------------------------- -Installation instructions - -Grab the following from the Dojo SVN Repository: -http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/data/* - -Install into the following directory structure: -/dojox/data/ - -...which should be at the same level as your Dojo checkout. - -/dojox/data/* - -Require in the dojox.data stores you wish to use. -------------------------------------------------------------------------------- -Additional Notes: - dojox.data.AtomReadStore - Reads Atom XML documents. - - dojox.data.CvsStore - comma-separated (spreadsheet output) - datastore implementation - - dojox.data.FlickrRestStore - advanced version of: dojox.data.FlickrStore - (Caching + user key support) - - dojox.data.FlickrStore - data store driven by Flickr.com public API. - - dojox.data.HtmlTableStore - Implementation of an HTML Table reading - datastore - - dojox.data.HtmlStore - Implementation of an HTML reading datastore. Can - handle tables, ordered and un-ordered lists, and lists of divs. - - dojox.data.OpmlStore - Store for reading OMPL formatted data - - dojox.data.XmlStore - datastore for XML based services or - documents. - - dojox.data.QueryReadStore - datastore to provide serverside URL query - matching. Similar to the 0.4.X ComboBox dataUrl parameter. - - dojox.data.jsonPathStore - datastore that takes an arbitrary js object - and uses it as the store. Pre-Alpha at the moment. - - dojox.data.KeyValueStore - datastore that mimics a key/value property - file format. - - dojox.data.SnapLogicStore - Store to interface to SnapLogic data services. - - dojox.data.JsonRestStore - Store to interface with RESTful HTTP/JSON web services. - dojox.data.PersevereStore - Extension of JsonRestStore for Persevere - dojox.data.CouchDBRestStore - Extension of JsonRestStore for CouchDB - dojox.data.S3JsonRestStore - Extension of JsonRestStore for Amazon S3 - dojox.data.GoogleSearchStore - Store to interface Google's AJAX search services. - There are many subclasses of this store for particular types of searches: - dojox.data.GoogleWebSearchStore - dojox.data.GoogleBlogSearchStore - dojox.data.GoogleLocalSearchStore - dojox.data.GoogleVideoSearchStore - dojox.data.GoogleNewsSearchStore - dojox.data.GoogleBookSearchStore - dojox.data.GoogleImageSearchStore - - dojox.data.AndOrReadStore - Demonstrating a more complex query format allowing AND/OR. - Based directly on dojo.data.ItemFileReadStore. - - dojox.data.AndOrWriteStore - Demonstrating a more complex query format allowing AND/OR. - Based directly on dojo.data.ItemFileWriteStore. - - dojox.data.FileStore - A lazy-loading store designed for searching filesystems with a provided - PHP back end. Implements dojo.data.api.Read and dojo.data.api.Identity - - dojox.data.CssRuleStore - A store that allows searching/querying over Css rules loaded in the page in - the browser. - - dojox.data.CssClassStore - A store that allows searching/querying over what classes are defined in the page in - the browser. - - dojox.data.AppStore - A store that implements full read, write, and identity APIs for working with ATOM documents. - The store uses the full APP protocol. - - dojox.data.OpenSearchStore - A store that implements OpenSearch provider search capability. - http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/RailsStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/RailsStore.js b/components/camel-web/src/main/webapp/js/dojox/data/RailsStore.js deleted file mode 100644 index 94726a7..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/RailsStore.js +++ /dev/null @@ -1,97 +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["dojox.data.RailsStore"]){ -dojo._hasResource["dojox.data.RailsStore"]=true; -dojo.provide("dojox.data.RailsStore"); -dojo.require("dojox.data.JsonRestStore"); -dojo.declare("dojox.data.RailsStore",dojox.data.JsonRestStore,{constructor:function(){ -},preamble:function(_1){ -if(typeof _1.target=="string"&&!_1.service){ -var _2=_1.target.replace(/\/$/g,""); -var _3=function(id,_5){ -_5=_5||{}; -var _6=_2; -var _7; -var _8; -if(dojo.isObject(id)){ -_8=""; -_7="?"+dojo.objectToQuery(id); -}else{ -if(_5.queryStr&&_5.queryStr.indexOf("?")!=-1){ -_8=_5.queryStr.replace(/\?.*/,""); -_7=_5.queryStr.replace(/[^?]*\?/g,"?"); -}else{ -if(dojo.isString(_5.query)&&_5.query.indexOf("?")!=-1){ -_8=_5.query.replace(/\?.*/,""); -_7=_5.query.replace(/[^?]*\?/g,"?"); -}else{ -_8=id?id.toString():""; -_7=""; -} -} -} -if(_8.indexOf("=")!=-1){ -_7=_8; -_8=""; -} -if(_8){ -_6=_6+"/"+_8+".json"+_7; -}else{ -_6=_6+".json"+_7; -} -var _9=dojox.rpc._sync; -dojox.rpc._sync=false; -return {url:_6,handleAs:"json",contentType:"application/json",sync:_9,headers:{Accept:"application/json,application/javascript",Range:_5&&(_5.start>=0||_5.count>=0)?"items="+(_5.start||"0")+"-"+((_5.count&&(_5.count+(_5.start||0)-1))||""):undefined}}; -}; -_1.service=dojox.rpc.Rest(this.target,true,null,_3); -} -},fetch:function(_a){ -_a=_a||{}; -function _b(_c){ -function _d(){ -if(_a.queryStr==null){ -_a.queryStr=""; -} -if(dojo.isObject(_a.query)){ -_a.queryStr="?"+dojo.objectToQuery(_a.query); -}else{ -if(dojo.isString(_a.query)){ -_a.queryStr=_a.query; -} -} -}; -function _e(){ -if(_a.queryStr.indexOf("?")==-1){ -return "?"; -}else{ -return "&"; -} -}; -if(_a.queryStr==null){ -_d(); -} -_a.queryStr=_a.queryStr+_e()+dojo.objectToQuery(_c); -}; -if(_a.start||_a.count){ -if((_a.start||0)%_a.count){ -throw new Error("The start parameter must be a multiple of the count parameter"); -} -_b({page:((_a.start||0)/_a.count)+1,per_page:_a.count}); -} -if(_a.sort){ -var _f={sortBy:[],sortDir:[]}; -dojo.forEach(_a.sort,function(_10){ -_f.sortBy.push(_10.attribute); -_f.sortDir.push(!!_10.descending?"DESC":"ASC"); -}); -_b(_f); -delete _a.sort; -} -return this.inherited(arguments); -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/S3Store.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/S3Store.js b/components/camel-web/src/main/webapp/js/dojox/data/S3Store.js deleted file mode 100644 index 663224b..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/S3Store.js +++ /dev/null @@ -1,29 +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["dojox.data.S3Store"]){ -dojo._hasResource["dojox.data.S3Store"]=true; -dojo.provide("dojox.data.S3Store"); -dojo.require("dojox.rpc.ProxiedPath"); -dojo.require("dojox.data.JsonRestStore"); -dojo.declare("dojox.data.S3Store",dojox.data.JsonRestStore,{_processResults:function(_1){ -var _2=_1.getElementsByTagName("Key"); -var _3=[]; -var _4=this; -for(var i=0;i<_2.length;i++){ -var _6=_2[i]; -var _7={_loadObject:(function(_8,_9){ -return function(_a){ -delete this._loadObject; -_4.service(_8).addCallback(_a); -}; -})(_6.firstChild.nodeValue,_7)}; -_3.push(_7); -} -return {totalCount:_3.length,items:_3}; -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/ServiceStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/ServiceStore.js b/components/camel-web/src/main/webapp/js/dojox/data/ServiceStore.js deleted file mode 100644 index 6e24196..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/ServiceStore.js +++ /dev/null @@ -1,145 +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["dojox.data.ServiceStore"]){ -dojo._hasResource["dojox.data.ServiceStore"]=true; -dojo.provide("dojox.data.ServiceStore"); -dojo.declare("dojox.data.ServiceStore",dojox.data.ClientFilter,{constructor:function(_1){ -this.byId=this.fetchItemByIdentity; -this._index={}; -if(_1){ -dojo.mixin(this,_1); -} -this.idAttribute=(_1&&_1.idAttribute)||(this.schema&&this.schema._idAttr); -this.labelAttribute=this.labelAttribute||"label"; -},schema:null,idAttribute:"id",syncMode:false,estimateCountFactor:1,getSchema:function(){ -return this.schema; -},loadLazyValues:true,getValue:function(_2,_3,_4){ -var _5=_2[_3]; -return _5||(_3 in _2?_5:_2._loadObject?(dojox.rpc._sync=true)&&arguments.callee.call(this,dojox.data.ServiceStore.prototype.loadItem({item:_2})||{},_3,_4):_4); -},getValues:function(_6,_7){ -var _8=this.getValue(_6,_7); -return _8 instanceof Array?_8:_8===undefined?[]:[_8]; -},getAttributes:function(_9){ -var _a=[]; -for(var i in _9){ -if(_9.hasOwnProperty(i)&&!(i.charAt(0)=="_"&&i.charAt(1)=="_")){ -_a.push(i); -} -} -return _a; -},hasAttribute:function(_c,_d){ -return _d in _c; -},containsValue:function(_e,_f,_10){ -return dojo.indexOf(this.getValues(_e,_f),_10)>-1; -},isItem:function(_11){ -return (typeof _11=="object")&&_11&&!(_11 instanceof Date); -},isItemLoaded:function(_12){ -return _12&&!_12._loadObject; -},loadItem:function(_13){ -var _14; -if(_13.item._loadObject){ -_13.item._loadObject(function(_15){ -_14=_15; -delete _14._loadObject; -var _16=_15 instanceof Error?_13.onError:_13.onItem; -if(_16){ -_16.call(_13.scope,_15); -} -}); -}else{ -if(_13.onItem){ -_13.onItem.call(_13.scope,_13.item); -} -} -return _14; -},_currentId:0,_processResults:function(_17,_18){ -if(_17&&typeof _17=="object"){ -var id=_17.__id; -if(!id){ -if(this.idAttribute){ -id=_17[this.idAttribute]; -}else{ -id=this._currentId++; -} -if(id!==undefined){ -var _1a=this._index[id]; -if(_1a){ -for(var j in _1a){ -delete _1a[j]; -} -_17=dojo.mixin(_1a,_17); -} -_17.__id=id; -this._index[id]=_17; -} -} -for(var i in _17){ -_17[i]=this._processResults(_17[i],_18).items; -} -} -var _1d=_17.length; -return {totalCount:_18.request.count==_1d?(_18.request.start||0)+_1d*this.estimateCountFactor:_1d,items:_17}; -},close:function(_1e){ -return _1e&&_1e.abort&&_1e.abort(); -},fetch:function(_1f){ -_1f=_1f||{}; -if("syncMode" in _1f?_1f.syncMode:this.syncMode){ -dojox.rpc._sync=true; -} -var _20=this; -var _21=_1f.scope||_20; -var _22=this.cachingFetch?this.cachingFetch(_1f):this._doQuery(_1f); -_22.request=_1f; -_22.addCallback(function(_23){ -if(_1f.clientFetch){ -_23=_20.clientSideFetch({query:_1f.clientFetch,sort:_1f.sort,start:_1f.start,count:_1f.count},_23); -} -var _24=_20._processResults(_23,_22); -_23=_1f.results=_24.items; -if(_1f.onBegin){ -_1f.onBegin.call(_21,_24.totalCount,_1f); -} -if(_1f.onItem){ -for(var i=0;i<_23.length;i++){ -_1f.onItem.call(_21,_23[i],_1f); -} -} -if(_1f.onComplete){ -_1f.onComplete.call(_21,_1f.onItem?null:_23,_1f); -} -return _23; -}); -_22.addErrback(_1f.onError&&dojo.hitch(_21,_1f.onError)); -_1f.abort=function(){ -_22.ioArgs.xhr.abort(); -}; -_1f.store=this; -return _1f; -},_doQuery:function(_26){ -var _27=typeof _26.queryStr=="string"?_26.queryStr:_26.query; -return this.service(_27); -},getFeatures:function(){ -return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true,"dojo.data.api.Schema":this.schema}; -},getLabel:function(_28){ -return this.getValue(_28,this.labelAttribute); -},getLabelAttributes:function(_29){ -return [this.labelAttribute]; -},getIdentity:function(_2a){ -return _2a.__id; -},getIdentityAttributes:function(_2b){ -return [this.idAttribute]; -},fetchItemByIdentity:function(_2c){ -var _2d=this._index[(_2c._prefix||"")+_2c.identity]; -if(_2d&&_2c.onItem){ -_2c.onItem.call(_2c.scope,_2d); -}else{ -return this.fetch({query:_2c.identity,onComplete:_2c.onItem,onError:_2c.onError,scope:_2c.scope}).results; -} -return _2d; -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/SnapLogicStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/SnapLogicStore.js b/components/camel-web/src/main/webapp/js/dojox/data/SnapLogicStore.js deleted file mode 100644 index 0b26ed5..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/SnapLogicStore.js +++ /dev/null @@ -1,183 +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["dojox.data.SnapLogicStore"]){ -dojo._hasResource["dojox.data.SnapLogicStore"]=true; -dojo.provide("dojox.data.SnapLogicStore"); -dojo.require("dojo.io.script"); -dojo.require("dojo.data.util.sorter"); -dojo.declare("dojox.data.SnapLogicStore",null,{Parts:{DATA:"data",COUNT:"count"},url:"",constructor:function(_1){ -if(_1.url){ -this.url=_1.url; -} -this._parameters=_1.parameters; -},_assertIsItem:function(_2){ -if(!this.isItem(_2)){ -throw new Error("dojox.data.SnapLogicStore: a function was passed an item argument that was not an item"); -} -},_assertIsAttribute:function(_3){ -if(typeof _3!=="string"){ -throw new Error("dojox.data.SnapLogicStore: a function was passed an attribute argument that was not an attribute name string"); -} -},getFeatures:function(){ -return {"dojo.data.api.Read":true}; -},getValue:function(_4,_5,_6){ -this._assertIsItem(_4); -this._assertIsAttribute(_5); -var i=dojo.indexOf(_4.attributes,_5); -if(i!==-1){ -return _4.values[i]; -} -return _6; -},getAttributes:function(_8){ -this._assertIsItem(_8); -return _8.attributes; -},hasAttribute:function(_9,_a){ -this._assertIsItem(_9); -this._assertIsAttribute(_a); -for(var i=0;i<_9.attributes.length;++i){ -if(_a==_9.attributes[i]){ -return true; -} -} -return false; -},isItemLoaded:function(_c){ -return this.isItem(_c); -},loadItem:function(_d){ -},getLabel:function(_e){ -return undefined; -},getLabelAttributes:function(_f){ -return null; -},containsValue:function(_10,_11,_12){ -return this.getValue(_10,_11)===_12; -},getValues:function(_13,_14){ -this._assertIsItem(_13); -this._assertIsAttribute(_14); -var i=dojo.indexOf(_13.attributes,_14); -if(i!==-1){ -return [_13.values[i]]; -} -return []; -},isItem:function(_16){ -if(_16&&_16._store===this){ -return true; -} -return false; -},close:function(_17){ -},_fetchHandler:function(_18){ -var _19=_18.scope||dojo.global; -if(_18.onBegin){ -_18.onBegin.call(_19,_18._countResponse[0],_18); -} -if(_18.onItem||_18.onComplete){ -var _1a=_18._dataResponse; -if(!_1a.length){ -_18.onError.call(_19,new Error("dojox.data.SnapLogicStore: invalid response of length 0"),_18); -return; -}else{ -if(_18.query!="record count"){ -var _1b=_1a.shift(); -var _1c=[]; -for(var i=0;i<_1a.length;++i){ -if(_18._aborted){ -break; -} -_1c.push({attributes:_1b,values:_1a[i],_store:this}); -} -if(_18.sort&&!_18._aborted){ -_1c.sort(dojo.data.util.sorter.createSortFunction(_18.sort,self)); -} -}else{ -_1c=[({attributes:["count"],values:_1a,_store:this})]; -} -} -if(_18.onItem){ -for(var i=0;i<_1c.length;++i){ -if(_18._aborted){ -break; -} -_18.onItem.call(_19,_1c[i],_18); -} -_1c=null; -} -if(_18.onComplete&&!_18._aborted){ -_18.onComplete.call(_19,_1c,_18); -} -} -},_partHandler:function(_1e,_1f,_20){ -if(_20 instanceof Error){ -if(_1f==this.Parts.DATA){ -_1e._dataHandle=null; -}else{ -_1e._countHandle=null; -} -_1e._aborted=true; -if(_1e.onError){ -_1e.onError.call(_1e.scope,_20,_1e); -} -}else{ -if(_1e._aborted){ -return; -} -if(_1f==this.Parts.DATA){ -_1e._dataResponse=_20; -}else{ -_1e._countResponse=_20; -} -if((!_1e._dataHandle||_1e._dataResponse!==null)&&(!_1e._countHandle||_1e._countResponse!==null)){ -this._fetchHandler(_1e); -} -} -},fetch:function(_21){ -_21._countResponse=null; -_21._dataResponse=null; -_21._aborted=false; -_21.abort=function(){ -if(!_21._aborted){ -_21._aborted=true; -if(_21._dataHandle&&_21._dataHandle.cancel){ -_21._dataHandle.cancel(); -} -if(_21._countHandle&&_21._countHandle.cancel){ -_21._countHandle.cancel(); -} -} -}; -if(_21.onItem||_21.onComplete){ -var _22=this._parameters||{}; -if(_21.start){ -if(_21.start<0){ -throw new Error("dojox.data.SnapLogicStore: request start value must be 0 or greater"); -} -_22["sn.start"]=_21.start+1; -} -if(_21.count){ -if(_21.count<0){ -throw new Error("dojox.data.SnapLogicStore: request count value 0 or greater"); -} -_22["sn.limit"]=_21.count; -} -_22["sn.content_type"]="application/javascript"; -var _23=this; -var _24=function(_25,_26){ -if(_25 instanceof Error){ -_23._fetchHandler(_25,_21); -} -}; -var _27={url:this.url,content:_22,timeout:60000,callbackParamName:"sn.stream_header",handle:dojo.hitch(this,"_partHandler",_21,this.Parts.DATA)}; -_21._dataHandle=dojo.io.script.get(_27); -} -if(_21.onBegin){ -var _22={}; -_22["sn.count"]="records"; -_22["sn.content_type"]="application/javascript"; -var _27={url:this.url,content:_22,timeout:60000,callbackParamName:"sn.stream_header",handle:dojo.hitch(this,"_partHandler",_21,this.Parts.COUNT)}; -_21._countHandle=dojo.io.script.get(_27); -} -return _21; -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/StoreExplorer.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/StoreExplorer.js b/components/camel-web/src/main/webapp/js/dojox/data/StoreExplorer.js deleted file mode 100644 index b389610..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/StoreExplorer.js +++ /dev/null @@ -1,147 +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["dojox.data.StoreExplorer"]){ -dojo._hasResource["dojox.data.StoreExplorer"]=true; -dojo.provide("dojox.data.StoreExplorer"); -dojo.require("dojox.grid.DataGrid"); -dojo.require("dojox.data.ItemExplorer"); -dojo.require("dijit.layout.BorderContainer"); -dojo.require("dijit.layout.ContentPane"); -dojo.declare("dojox.data.StoreExplorer",dijit.layout.BorderContainer,{constructor:function(_1){ -dojo.mixin(this,_1); -},store:null,stringQueries:false,postCreate:function(){ -var _2=this; -this.inherited(arguments); -var _3=new dijit.layout.ContentPane({region:"top"}).placeAt(this); -function _4(_5,_6){ -var _7=new dijit.form.Button({label:_5}).placeAt(_3); -_7.onClick=_6; -return _7; -}; -var _8=_3.containerNode.appendChild(document.createElement("span")); -_8.innerHTML="Enter query: "; -_8.id="queryText"; -var _9=_3.containerNode.appendChild(document.createElement("input")); -_9.type="text"; -_9.id="queryTextBox"; -_4("Query",function(){ -var _a=_9.value; -_2.setQuery(_2.stringQueries?_a:dojo.fromJson(_a)); -}); -_3.containerNode.appendChild(document.createElement("span")).innerHTML=" "; -var _b=_4("Create New",dojo.hitch(this,"createNew")); -var _c=_4("Delete",function(){ -var _d=_e.selection.getSelected(); -for(var i=0;i<_d.length;i++){ -_2.store.deleteItem(_d[i]); -} -}); -this.setItemName=function(_10){ -_b.attr("label","<img style='width:12px; height:12px' src='"+dojo.moduleUrl("dijit.themes.tundra.images","dndCopy.png")+"' /> Create New "+_10); -_c.attr("label","Delete "+_10); -}; -_4("Save",function(){ -_2.store.save(); -_2.tree.refreshItem(); -}); -_4("Revert",function(){ -_2.store.revert(); -}); -_4("Add Column",function(){ -var _11=prompt("Enter column name:","property"); -if(_11){ -_2.gridLayout.push({field:_11,name:_11,formatter:dojo.hitch(_2,"_formatCell"),editable:true}); -_2.grid.attr("structure",_2.gridLayout); -} -}); -var _12=new dijit.layout.ContentPane({region:"center"}).placeAt(this); -var _e=this.grid=new dojox.grid.DataGrid({store:this.store}); -_12.attr("content",_e); -_e.canEdit=function(_13,_14){ -var _15=this._copyAttr(_14,_13.field); -return !(_15&&typeof _15=="object")||_15 instanceof Date; -}; -var _16=new dijit.layout.ContentPane({region:"trailing",splitter:true,style:"width: 300px",}).placeAt(this); -var _17=this.tree=new dojox.data.ItemExplorer({store:this.store}); -_16.attr("content",_17); -dojo.connect(_e,"onCellClick",function(){ -var _18=_e.selection.getSelected()[0]; -_17.setItem(_18); -}); -this.gridOnFetchComplete=_e._onFetchComplete; -this.setStore(this.store); -},setQuery:function(_19){ -this.grid.setQuery(_19); -},_formatCell:function(_1a){ -if(this.store.isItem(_1a)){ -return this.store.getLabel(_1a)||this.store.getIdentity(_1a); -} -return _1a; -},setStore:function(_1b){ -this.store=_1b; -var _1c=this; -var _1d=this.grid; -_1d._pending_requests[0]=false; -function _1e(_1f){ -return _1c._formatCell(_1f); -}; -var _20=this.gridOnFetchComplete; -_1d._onFetchComplete=function(_21,req){ -var _23=_1c.gridLayout=[]; -var _24,key,_26,i,j,k,_2a=_1b.getIdentityAttributes(); -for(i=0;i<_2a.length;i++){ -key=_2a[i]; -_23.push({field:key,name:key,_score:100,formatter:_1e,editable:false}); -} -for(i=0;_26=_21[i++];){ -var _2b=_1b.getAttributes(_26); -for(k=0;key=_2b[k++];){ -var _2c=false; -for(j=0;_24=_23[j++];){ -if(_24.field==key){ -_24._score++; -_2c=true; -break; -} -} -if(!_2c){ -_23.push({field:key,name:key,_score:1,formatter:_1e,styles:"white-space:nowrap; ",editable:true}); -} -} -} -_23=_23.sort(function(a,b){ -return a._score>b._score?-1:1; -}); -for(j=0;_24=_23[j];j++){ -if(_24._score<_21.length/40*j){ -_23.splice(j,_23.length-j); -break; -} -} -for(j=0;_24=_23[j++];){ -_24.width=Math.round(100/_23.length)+"%"; -} -_1d._onFetchComplete=_20; -_1d.attr("structure",_23); -var _2f=_20.apply(this,arguments); -}; -_1d.setStore(_1b); -this.queryOptions={cache:true}; -this.tree.setStore(_1b); -},createNew:function(){ -var _30=prompt("Enter any properties to put in the new item (in JSON literal form):","{ }"); -if(_30){ -try{ -this.store.newItem(dojo.fromJson(_30)); -} -catch(e){ -alert(e); -} -} -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/WikipediaStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/WikipediaStore.js b/components/camel-web/src/main/webapp/js/dojox/data/WikipediaStore.js deleted file mode 100644 index ae2f795..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/WikipediaStore.js +++ /dev/null @@ -1,63 +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["dojox.data.WikipediaStore"]){ -dojo._hasResource["dojox.data.WikipediaStore"]=true; -dojo.provide("dojox.data.WikipediaStore"); -dojo.require("dojo.io.script"); -dojo.require("dojox.rpc.Service"); -dojo.require("dojox.data.ServiceStore"); -dojo.experimental("dojox.data.WikipediaStore"); -dojo.declare("dojox.data.WikipediaStore",dojox.data.ServiceStore,{constructor:function(_1){ -if(_1&&_1.service){ -this.service=_1.service; -}else{ -var _2=new dojox.rpc.Service(dojo.moduleUrl("dojox.rpc.SMDLibrary","wikipedia.smd")); -this.service=_2.query; -} -this.idAttribute=this.labelAttribute="title"; -},fetch:function(_3){ -var rq=dojo.mixin({},_3.query); -if(rq&&(!rq.action||rq.action==="parse")){ -rq.action="parse"; -rq.page=rq.title; -delete rq.title; -}else{ -if(rq.action==="query"){ -rq.list="search"; -rq.srwhat="text"; -rq.srsearch=rq.text; -if(_3.start){ -rq.sroffset=_3.start-1; -} -if(_3.count){ -rq.srlimit=_3.count>=500?500:_3.count; -} -delete rq.text; -} -} -_3.query=rq; -return this.inherited(arguments); -},_processResults:function(_5,_6){ -if(_5.parse){ -_5.parse.title=dojo.queryToObject(_6.ioArgs.url.split("?")[1]).page; -_5=[_5.parse]; -}else{ -if(_5.query&&_5.query.search){ -_5=_5.query.search; -var _7=this; -for(var i in _5){ -_5[i]._loadObject=function(_9){ -_7.fetch({query:{action:"parse",title:this.title},onItem:_9}); -delete this._loadObject; -}; -} -} -} -return this.inherited(arguments); -}}); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/XmlStore.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/XmlStore.js b/components/camel-web/src/main/webapp/js/dojox/data/XmlStore.js deleted file mode 100644 index cc2a55c..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/XmlStore.js +++ /dev/null @@ -1,917 +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["dojox.data.XmlStore"]){ -dojo._hasResource["dojox.data.XmlStore"]=true; -dojo.provide("dojox.data.XmlStore"); -dojo.provide("dojox.data.XmlItem"); -dojo.require("dojo.data.util.simpleFetch"); -dojo.require("dojo.data.util.filter"); -dojo.require("dojox.xml.parser"); -dojo.declare("dojox.data.XmlStore",null,{constructor:function(_1){ -if(_1){ -this.url=_1.url; -this.rootItem=(_1.rootItem||_1.rootitem||this.rootItem); -this.keyAttribute=(_1.keyAttribute||_1.keyattribute||this.keyAttribute); -this._attributeMap=(_1.attributeMap||_1.attributemap); -this.label=_1.label||this.label; -this.sendQuery=(_1.sendQuery||_1.sendquery||this.sendQuery); -} -this._newItems=[]; -this._deletedItems=[]; -this._modifiedItems=[]; -},url:"",rootItem:"",keyAttribute:"",label:"",sendQuery:false,attributeMap:null,getValue:function(_2,_3,_4){ -var _5=_2.element; -var i; -var _7; -if(_3==="tagName"){ -return _5.nodeName; -}else{ -if(_3==="childNodes"){ -for(i=0;i<_5.childNodes.length;i++){ -_7=_5.childNodes[i]; -if(_7.nodeType===1){ -return this._getItem(_7); -} -} -return _4; -}else{ -if(_3==="text()"){ -for(i=0;i<_5.childNodes.length;i++){ -_7=_5.childNodes[i]; -if(_7.nodeType===3||_7.nodeType===4){ -return _7.nodeValue; -} -} -return _4; -}else{ -_3=this._getAttribute(_5.nodeName,_3); -if(_3.charAt(0)==="@"){ -var _8=_3.substring(1); -var _9=_5.getAttribute(_8); -return (_9!==undefined)?_9:_4; -}else{ -for(i=0;i<_5.childNodes.length;i++){ -_7=_5.childNodes[i]; -if(_7.nodeType===1&&_7.nodeName===_3){ -return this._getItem(_7); -} -} -return _4; -} -} -} -} -},getValues:function(_a,_b){ -var _c=_a.element; -var _d=[]; -var i; -var _f; -if(_b==="tagName"){ -return [_c.nodeName]; -}else{ -if(_b==="childNodes"){ -for(i=0;i<_c.childNodes.length;i++){ -_f=_c.childNodes[i]; -if(_f.nodeType===1){ -_d.push(this._getItem(_f)); -} -} -return _d; -}else{ -if(_b==="text()"){ -var ec=_c.childNodes; -for(i=0;i<ec.length;i++){ -_f=ec[i]; -if(_f.nodeType===3||_f.nodeType===4){ -_d.push(_f.nodeValue); -} -} -return _d; -}else{ -_b=this._getAttribute(_c.nodeName,_b); -if(_b.charAt(0)==="@"){ -var _11=_b.substring(1); -var _12=_c.getAttribute(_11); -return (_12!==undefined)?[_12]:[]; -}else{ -for(i=0;i<_c.childNodes.length;i++){ -_f=_c.childNodes[i]; -if(_f.nodeType===1&&_f.nodeName===_b){ -_d.push(this._getItem(_f)); -} -} -return _d; -} -} -} -} -},getAttributes:function(_13){ -var _14=_13.element; -var _15=[]; -var i; -_15.push("tagName"); -if(_14.childNodes.length>0){ -var _17={}; -var _18=true; -var _19=false; -for(i=0;i<_14.childNodes.length;i++){ -var _1a=_14.childNodes[i]; -if(_1a.nodeType===1){ -var _1b=_1a.nodeName; -if(!_17[_1b]){ -_15.push(_1b); -_17[_1b]=_1b; -} -_18=true; -}else{ -if(_1a.nodeType===3){ -_19=true; -} -} -} -if(_18){ -_15.push("childNodes"); -} -if(_19){ -_15.push("text()"); -} -} -for(i=0;i<_14.attributes.length;i++){ -_15.push("@"+_14.attributes[i].nodeName); -} -if(this._attributeMap){ -for(var key in this._attributeMap){ -i=key.indexOf("."); -if(i>0){ -var _1d=key.substring(0,i); -if(_1d===_14.nodeName){ -_15.push(key.substring(i+1)); -} -}else{ -_15.push(key); -} -} -} -return _15; -},hasAttribute:function(_1e,_1f){ -return (this.getValue(_1e,_1f)!==undefined); -},containsValue:function(_20,_21,_22){ -var _23=this.getValues(_20,_21); -for(var i=0;i<_23.length;i++){ -if((typeof _22==="string")){ -if(_23[i].toString&&_23[i].toString()===_22){ -return true; -} -}else{ -if(_23[i]===_22){ -return true; -} -} -} -return false; -},isItem:function(_25){ -if(_25&&_25.element&&_25.store&&_25.store===this){ -return true; -} -return false; -},isItemLoaded:function(_26){ -return this.isItem(_26); -},loadItem:function(_27){ -},getFeatures:function(){ -var _28={"dojo.data.api.Read":true,"dojo.data.api.Write":true}; -if(!this.sendQuery||this.keyAttribute!==""){ -_28["dojo.data.api.Identity"]=true; -} -return _28; -},getLabel:function(_29){ -if((this.label!=="")&&this.isItem(_29)){ -var _2a=this.getValue(_29,this.label); -if(_2a){ -return _2a.toString(); -} -} -return undefined; -},getLabelAttributes:function(_2b){ -if(this.label!==""){ -return [this.label]; -} -return null; -},_fetchItems:function(_2c,_2d,_2e){ -var url=this._getFetchUrl(_2c); - -if(!url){ -_2e(new Error("No URL specified.")); -return; -} -var _30=(!this.sendQuery?_2c:null); -var _31=this; -var _32={url:url,handleAs:"xml",preventCache:true}; -var _33=dojo.xhrGet(_32); -_33.addCallback(function(_34){ -var _35=_31._getItems(_34,_30); - -if(_35&&_35.length>0){ -_2d(_35,_2c); -}else{ -_2d([],_2c); -} -}); -_33.addErrback(function(_36){ -_2e(_36,_2c); -}); -},_getFetchUrl:function(_37){ -if(!this.sendQuery){ -return this.url; -} -var _38=_37.query; -if(!_38){ -return this.url; -} -if(dojo.isString(_38)){ -return this.url+_38; -} -var _39=""; -for(var _3a in _38){ -var _3b=_38[_3a]; -if(_3b){ -if(_39){ -_39+="&"; -} -_39+=(_3a+"="+_3b); -} -} -if(!_39){ -return this.url; -} -var _3c=this.url; -if(_3c.indexOf("?")<0){ -_3c+="?"; -}else{ -_3c+="&"; -} -return _3c+_39; -},_getItems:function(_3d,_3e){ -var _3f=null; -if(_3e){ -_3f=_3e.query; -} -var _40=[]; -var _41=null; -if(this.rootItem!==""){ -_41=dojo.query(this.rootItem,_3d); -}else{ -_41=_3d.documentElement.childNodes; -} -var _42=_3e.queryOptions?_3e.queryOptions.deep:false; -if(_42){ -_41=this._flattenNodes(_41); -} -for(var i=0;i<_41.length;i++){ -var _44=_41[i]; -if(_44.nodeType!=1){ -continue; -} -var _45=this._getItem(_44); -if(_3f){ -var _46=true; -var _47=_3e.queryOptions?_3e.queryOptions.ignoreCase:false; -var _48; -var _49={}; -for(var key in _3f){ -_48=_3f[key]; -if(typeof _48==="string"){ -_49[key]=dojo.data.util.filter.patternToRegExp(_48,_47); -} -} -for(var _4b in _3f){ -_48=this.getValue(_45,_4b); -if(_48){ -var _4c=_3f[_4b]; -if((typeof _48)==="string"&&(_49[_4b])){ -if((_48.match(_49[_4b]))!==null){ -continue; -} -}else{ -if((typeof _48)==="object"){ -if(_48.toString&&(_49[_4b])){ -var _4d=_48.toString(); -if((_4d.match(_49[_4b]))!==null){ -continue; -} -}else{ -if(_4c==="*"||_4c===_48){ -continue; -} -} -} -} -} -_46=false; -break; -} -if(!_46){ -continue; -} -} -_40.push(_45); -} -dojo.forEach(_40,function(_4e){ -_4e.element.parentNode.removeChild(_4e.element); -},this); -return _40; -},_flattenNodes:function(_4f){ -var _50=[]; -if(_4f){ -var i; -for(i=0;i<_4f.length;i++){ -var _52=_4f[i]; -_50.push(_52); -if(_52.childNodes&&_52.childNodes.length>0){ -_50=_50.concat(this._flattenNodes(_52.childNodes)); -} -} -} -return _50; -},close:function(_53){ -},newItem:function(_54,_55){ - -_54=(_54||{}); -var _56=_54.tagName; -if(!_56){ -_56=this.rootItem; -if(_56===""){ -return null; -} -} -var _57=this._getDocument(); -var _58=_57.createElement(_56); -for(var _59 in _54){ -var _5a; -if(_59==="tagName"){ -continue; -}else{ -if(_59==="text()"){ -_5a=_57.createTextNode(_54[_59]); -_58.appendChild(_5a); -}else{ -_59=this._getAttribute(_56,_59); -if(_59.charAt(0)==="@"){ -var _5b=_59.substring(1); -_58.setAttribute(_5b,_54[_59]); -}else{ -var _5c=_57.createElement(_59); -_5a=_57.createTextNode(_54[_59]); -_5c.appendChild(_5a); -_58.appendChild(_5c); -} -} -} -} -var _5d=this._getItem(_58); -this._newItems.push(_5d); -var _5e=null; -if(_55&&_55.parent&&_55.attribute){ -_5e={item:_55.parent,attribute:_55.attribute,oldValue:undefined}; -var _5f=this.getValues(_55.parent,_55.attribute); -if(_5f&&_5f.length>0){ -var _60=_5f.slice(0,_5f.length); -if(_5f.length===1){ -_5e.oldValue=_5f[0]; -}else{ -_5e.oldValue=_5f.slice(0,_5f.length); -} -_60.push(_5d); -this.setValues(_55.parent,_55.attribute,_60); -_5e.newValue=this.getValues(_55.parent,_55.attribute); -}else{ -this.setValues(_55.parent,_55.attribute,_5d); -_5e.newValue=_5d; -} -} -return _5d; -},deleteItem:function(_61){ - -var _62=_61.element; -if(_62.parentNode){ -this._backupItem(_61); -_62.parentNode.removeChild(_62); -return true; -} -this._forgetItem(_61); -this._deletedItems.push(_61); -return true; -},setValue:function(_63,_64,_65){ -if(_64==="tagName"){ -return false; -} -this._backupItem(_63); -var _66=_63.element; -var _67; -var _68; -if(_64==="childNodes"){ -_67=_65.element; -_66.appendChild(_67); -}else{ -if(_64==="text()"){ -while(_66.firstChild){ -_66.removeChild(_66.firstChild); -} -_68=this._getDocument(_66).createTextNode(_65); -_66.appendChild(_68); -}else{ -_64=this._getAttribute(_66.nodeName,_64); -if(_64.charAt(0)==="@"){ -var _69=_64.substring(1); -_66.setAttribute(_69,_65); -}else{ -for(var i=0;i<_66.childNodes.length;i++){ -var _6b=_66.childNodes[i]; -if(_6b.nodeType===1&&_6b.nodeName===_64){ -_67=_6b; -break; -} -} -var _6c=this._getDocument(_66); -if(_67){ -while(_67.firstChild){ -_67.removeChild(_67.firstChild); -} -}else{ -_67=_6c.createElement(_64); -_66.appendChild(_67); -} -_68=_6c.createTextNode(_65); -_67.appendChild(_68); -} -} -} -return true; -},setValues:function(_6d,_6e,_6f){ -if(_6e==="tagName"){ -return false; -} -this._backupItem(_6d); -var _70=_6d.element; -var i; -var _72; -var _73; -if(_6e==="childNodes"){ -while(_70.firstChild){ -_70.removeChild(_70.firstChild); -} -for(i=0;i<_6f.length;i++){ -_72=_6f[i].element; -_70.appendChild(_72); -} -}else{ -if(_6e==="text()"){ -while(_70.firstChild){ -_70.removeChild(_70.firstChild); -} -var _74=""; -for(i=0;i<_6f.length;i++){ -_74+=_6f[i]; -} -_73=this._getDocument(_70).createTextNode(_74); -_70.appendChild(_73); -}else{ -_6e=this._getAttribute(_70.nodeName,_6e); -if(_6e.charAt(0)==="@"){ -var _75=_6e.substring(1); -_70.setAttribute(_75,_6f[0]); -}else{ -for(i=_70.childNodes.length-1;i>=0;i--){ -var _76=_70.childNodes[i]; -if(_76.nodeType===1&&_76.nodeName===_6e){ -_70.removeChild(_76); -} -} -var _77=this._getDocument(_70); -for(i=0;i<_6f.length;i++){ -_72=_77.createElement(_6e); -_73=_77.createTextNode(_6f[i]); -_72.appendChild(_73); -_70.appendChild(_72); -} -} -} -} -return true; -},unsetAttribute:function(_78,_79){ -if(_79==="tagName"){ -return false; -} -this._backupItem(_78); -var _7a=_78.element; -if(_79==="childNodes"||_79==="text()"){ -while(_7a.firstChild){ -_7a.removeChild(_7a.firstChild); -} -}else{ -_79=this._getAttribute(_7a.nodeName,_79); -if(_79.charAt(0)==="@"){ -var _7b=_79.substring(1); -_7a.removeAttribute(_7b); -}else{ -for(var i=_7a.childNodes.length-1;i>=0;i--){ -var _7d=_7a.childNodes[i]; -if(_7d.nodeType===1&&_7d.nodeName===_79){ -_7a.removeChild(_7d); -} -} -} -} -return true; -},save:function(_7e){ -if(!_7e){ -_7e={}; -} -var i; -for(i=0;i<this._modifiedItems.length;i++){ -this._saveItem(this._modifiedItems[i],_7e,"PUT"); -} -for(i=0;i<this._newItems.length;i++){ -var _80=this._newItems[i]; -if(_80.element.parentNode){ -this._newItems.splice(i,1); -i--; -continue; -} -this._saveItem(this._newItems[i],_7e,"POST"); -} -for(i=0;i<this._deletedItems.length;i++){ -this._saveItem(this._deletedItems[i],_7e,"DELETE"); -} -},revert:function(){ - - - -this._newItems=[]; -this._restoreItems(this._deletedItems); -this._deletedItems=[]; -this._restoreItems(this._modifiedItems); -this._modifiedItems=[]; -return true; -},isDirty:function(_81){ -if(_81){ -var _82=this._getRootElement(_81.element); -return (this._getItemIndex(this._newItems,_82)>=0||this._getItemIndex(this._deletedItems,_82)>=0||this._getItemIndex(this._modifiedItems,_82)>=0); -}else{ -return (this._newItems.length>0||this._deletedItems.length>0||this._modifiedItems.length>0); -} -},_saveItem:function(_83,_84,_85){ -var url; -var _87; -if(_85==="PUT"){ -url=this._getPutUrl(_83); -}else{ -if(_85==="DELETE"){ -url=this._getDeleteUrl(_83); -}else{ -url=this._getPostUrl(_83); -} -} -if(!url){ -if(_84.onError){ -_87=_84.scope||dojo.global; -_84.onError.call(_87,new Error("No URL for saving content: "+this._getPostContent(_83))); -} -return; -} -var _88={url:url,method:(_85||"POST"),contentType:"text/xml",handleAs:"xml"}; -var _89; -if(_85==="PUT"){ -_88.putData=this._getPutContent(_83); -_89=dojo.rawXhrPut(_88); -}else{ -if(_85==="DELETE"){ -_89=dojo.xhrDelete(_88); -}else{ -_88.postData=this._getPostContent(_83); -_89=dojo.rawXhrPost(_88); -} -} -_87=(_84.scope||dojo.global); -var _8a=this; -_89.addCallback(function(_8b){ -_8a._forgetItem(_83); -if(_84.onComplete){ -_84.onComplete.call(_87); -} -}); -_89.addErrback(function(_8c){ -if(_84.onError){ -_84.onError.call(_87,_8c); -} -}); -},_getPostUrl:function(_8d){ -return this.url; -},_getPutUrl:function(_8e){ -return this.url; -},_getDeleteUrl:function(_8f){ -var url=this.url; -if(_8f&&this.keyAttribute!==""){ -var _91=this.getValue(_8f,this.keyAttribute); -if(_91){ -var key=this.keyAttribute.charAt(0)==="@"?this.keyAttribute.substring(1):this.keyAttribute; -url+=url.indexOf("?")<0?"?":"&"; -url+=key+"="+_91; -} -} -return url; -},_getPostContent:function(_93){ -var _94=_93.element; -var _95="<?xml version=\"1.0\"?>"; -return _95+dojox.xml.parser.innerXML(_94); -},_getPutContent:function(_96){ -var _97=_96.element; -var _98="<?xml version=\"1.0\"?>"; -return _98+dojox.xml.parser.innerXML(_97); -},_getAttribute:function(_99,_9a){ -if(this._attributeMap){ -var key=_99+"."+_9a; -var _9c=this._attributeMap[key]; -if(_9c){ -_9a=_9c; -}else{ -_9c=this._attributeMap[_9a]; -if(_9c){ -_9a=_9c; -} -} -} -return _9a; -},_getItem:function(_9d){ -try{ -var q=null; -if(this.keyAttribute===""){ -q=this._getXPath(_9d); -} -return new dojox.data.XmlItem(_9d,this,q); -} -catch(e){ - -} -return null; -},_getItemIndex:function(_9f,_a0){ -for(var i=0;i<_9f.length;i++){ -if(_9f[i].element===_a0){ -return i; -} -} -return -1; -},_backupItem:function(_a2){ -var _a3=this._getRootElement(_a2.element); -if(this._getItemIndex(this._newItems,_a3)>=0||this._getItemIndex(this._modifiedItems,_a3)>=0){ -return; -} -if(_a3!=_a2.element){ -_a2=this._getItem(_a3); -} -_a2._backup=_a3.cloneNode(true); -this._modifiedItems.push(_a2); -},_restoreItems:function(_a4){ -dojo.forEach(_a4,function(_a5){ -if(_a5._backup){ -_a5.element=_a5._backup; -_a5._backup=null; -} -},this); -},_forgetItem:function(_a6){ -var _a7=_a6.element; -var _a8=this._getItemIndex(this._newItems,_a7); -if(_a8>=0){ -this._newItems.splice(_a8,1); -} -_a8=this._getItemIndex(this._deletedItems,_a7); -if(_a8>=0){ -this._deletedItems.splice(_a8,1); -} -_a8=this._getItemIndex(this._modifiedItems,_a7); -if(_a8>=0){ -this._modifiedItems.splice(_a8,1); -} -},_getDocument:function(_a9){ -if(_a9){ -return _a9.ownerDocument; -}else{ -if(!this._document){ -return dojox.xml.parser.parse(); -} -} -return null; -},_getRootElement:function(_aa){ -while(_aa.parentNode){ -_aa=_aa.parentNode; -} -return _aa; -},_getXPath:function(_ab){ -var _ac=null; -if(!this.sendQuery){ -var _ad=_ab; -_ac=""; -while(_ad&&_ad!=_ab.ownerDocument){ -var pos=0; -var _af=_ad; -var _b0=_ad.nodeName; -while(_af){ -_af=_af.previousSibling; -if(_af&&_af.nodeName===_b0){ -pos++; -} -} -var _b1="/"+_b0+"["+pos+"]"; -if(_ac){ -_ac=_b1+_ac; -}else{ -_ac=_b1; -} -_ad=_ad.parentNode; -} -} -return _ac; -},getIdentity:function(_b2){ -if(!this.isItem(_b2)){ -throw new Error("dojox.data.XmlStore: Object supplied to getIdentity is not an item"); -}else{ -var id=null; -if(this.sendQuery&&this.keyAttribute!==""){ -id=this.getValue(_b2,this.keyAttribute).toString(); -}else{ -if(!this.serverQuery){ -if(this.keyAttribute!==""){ -id=this.getValue(_b2,this.keyAttribute).toString(); -}else{ -id=_b2.q; -} -} -} -return id; -} -},getIdentityAttributes:function(_b4){ -if(!this.isItem(_b4)){ -throw new Error("dojox.data.XmlStore: Object supplied to getIdentity is not an item"); -}else{ -if(this.keyAttribute!==""){ -return [this.keyAttribute]; -}else{ -return null; -} -} -},fetchItemByIdentity:function(_b5){ -var _b6=null; -var _b7=null; -var _b8=this; -var url=null; -var _ba=null; -var _bb=null; -if(!_b8.sendQuery){ -_b6=function(_bc){ -if(_bc){ -if(_b8.keyAttribute!==""){ -var _bd={}; -_bd.query={}; -_bd.query[_b8.keyAttribute]=_b5.identity; -var _be=_b8._getItems(_bc,_bd); -_b7=_b5.scope||dojo.global; -if(_be.length===1){ -if(_b5.onItem){ -_b5.onItem.call(_b7,_be[0]); -} -}else{ -if(_be.length===0){ -if(_b5.onItem){ -_b5.onItem.call(_b7,null); -} -}else{ -if(_b5.onError){ -_b5.onError.call(_b7,new Error("Items array size for identity lookup greater than 1, invalid keyAttribute.")); -} -} -} -}else{ -var _bf=_b5.identity.split("/"); -var i; -var _c1=_bc; -for(i=0;i<_bf.length;i++){ -if(_bf[i]&&_bf[i]!==""){ -var _c2=_bf[i]; -_c2=_c2.substring(0,_c2.length-1); -var _c3=_c2.split("["); -var tag=_c3[0]; -var _c5=parseInt(_c3[1],10); -var pos=0; -if(_c1){ -var _c7=_c1.childNodes; -if(_c7){ -var j; -var _c9=null; -for(j=0;j<_c7.length;j++){ -var _ca=_c7[j]; -if(_ca.nodeName===tag){ -if(pos<_c5){ -pos++; -}else{ -_c9=_ca; -break; -} -} -} -if(_c9){ -_c1=_c9; -}else{ -_c1=null; -} -}else{ -_c1=null; -} -}else{ -break; -} -} -} -var _cb=null; -if(_c1){ -_cb=_b8._getItem(_c1); -_cb.element.parentNode.removeChild(_cb.element); -} -if(_b5.onItem){ -_b7=_b5.scope||dojo.global; -_b5.onItem.call(_b7,_cb); -} -} -} -}; -url=this._getFetchUrl(null); -_ba={url:url,handleAs:"xml",preventCache:true}; -_bb=dojo.xhrGet(_ba); -_bb.addCallback(_b6); -if(_b5.onError){ -_bb.addErrback(function(_cc){ -var s=_b5.scope||dojo.global; -_b5.onError.call(s,_cc); -}); -} -}else{ -if(_b8.keyAttribute!==""){ -var _ce={query:{}}; -_ce.query[_b8.keyAttribute]=_b5.identity; -url=this._getFetchUrl(_ce); -_b6=function(_cf){ -var _d0=null; -if(_cf){ -var _d1=_b8._getItems(_d1,null); -if(_d1.length===1){ -_d0=_d1[0]; -}else{ -if(_b5.onError){ -var _d2=_b5.scope||dojo.global; -_b5.onError.call(_d2,new Error("More than one item was returned from the server for the denoted identity")); -} -} -} -if(_b5.onItem){ -_d2=_b5.scope||dojo.global; -_b5.onItem.call(_d2,_d0); -} -}; -_ba={url:url,handleAs:"xml",preventCache:true}; -_bb=dojo.xhrGet(_ba); -_bb.addCallback(_b6); -if(_b5.onError){ -_bb.addErrback(function(_d3){ -var s=_b5.scope||dojo.global; -_b5.onError.call(s,_d3); -}); -} -}else{ -if(_b5.onError){ -var s=_b5.scope||dojo.global; -_b5.onError.call(s,new Error("XmlStore is not told that the server to provides identity support. No keyAttribute specified.")); -} -} -} -}}); -dojo.declare("dojox.data.XmlItem",null,{constructor:function(_d6,_d7,_d8){ -this.element=_d6; -this.store=_d7; -this.q=_d8; -},toString:function(){ -var str=""; -if(this.element){ -for(var i=0;i<this.element.childNodes.length;i++){ -var _db=this.element.childNodes[i]; -if(_db.nodeType===3||_db.nodeType===4){ -str+=_db.nodeValue; -} -} -} -return str; -}}); -dojo.extend(dojox.data.XmlStore,dojo.data.util.simpleFetch); -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/css.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/css.js b/components/camel-web/src/main/webapp/js/dojox/data/css.js deleted file mode 100644 index 40eb3d5..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/css.js +++ /dev/null @@ -1,91 +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["dojox.data.css"]){ -dojo._hasResource["dojox.data.css"]=true; -dojo.provide("dojox.data.css"); -dojo.provide("dojox.data.css.rules"); -dojox.data.css.rules.forEach=function(fn,_2,_3){ -if(_3){ -var _4=function(_5){ -dojo.forEach(_5[_5.cssRules?"cssRules":"rules"],function(_6){ -if(!_6.type||_6.type!==3){ -var _7=""; -if(_5&&_5.href){ -_7=_5.href; -} -fn.call(_2?_2:this,_6,_5,_7); -} -}); -}; -dojo.forEach(_3,_4); -} -}; -dojox.data.css.findStyleSheets=function(_8){ -var _9=[]; -var _a=function(_b){ -var s=dojox.data.css.findStyleSheet(_b); -if(s){ -dojo.forEach(s,function(_d){ -if(dojo.indexOf(_9,_d)===-1){ -_9.push(_d); -} -}); -} -}; -dojo.forEach(_8,_a); -return _9; -}; -dojox.data.css.findStyleSheet=function(_e){ -var _f=[]; -if(_e.charAt(0)==="."){ -_e=_e.substring(1); -} -var _10=function(_11){ -if(_11.href&&_11.href.match(_e)){ -_f.push(_11); -return true; -} -if(_11.imports){ -return dojo.some(_11.imports,function(_12){ -return _10(_12); -}); -} -return dojo.some(_11[_11.cssRules?"cssRules":"rules"],function(_13){ -if(_13.type&&_13.type===3&&_10(_13.styleSheet)){ -return true; -} -return false; -}); -}; -dojo.some(document.styleSheets,_10); -return _f; -}; -dojox.data.css.determineContext=function(_14){ -var ret=[]; -if(_14&&_14.length>0){ -_14=dojox.data.css.findStyleSheets(_14); -}else{ -_14=document.styleSheets; -} -var _16=function(_17){ -ret.push(_17); -if(_17.imports){ -dojo.forEach(_17.imports,function(_18){ -_16(_18); -}); -} -dojo.forEach(_17[_17.cssRules?"cssRules":"rules"],function(_19){ -if(_19.type&&_19.type===3){ -_16(_19.styleSheet); -} -}); -}; -dojo.forEach(_14,_16); -return ret; -}; -} http://git-wip-us.apache.org/repos/asf/camel/blob/9f5e32db/components/camel-web/src/main/webapp/js/dojox/data/dom.js ---------------------------------------------------------------------- diff --git a/components/camel-web/src/main/webapp/js/dojox/data/dom.js b/components/camel-web/src/main/webapp/js/dojox/data/dom.js deleted file mode 100644 index 800a338..0000000 --- a/components/camel-web/src/main/webapp/js/dojox/data/dom.js +++ /dev/null @@ -1,42 +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["dojox.data.dom"]){ -dojo._hasResource["dojox.data.dom"]=true; -dojo.provide("dojox.data.dom"); -dojo.require("dojox.xml.parser"); -dojo.deprecated("dojox.data.dom","Use dojox.xml.parser instead.","2.0"); -dojox.data.dom.createDocument=function(_1,_2){ -dojo.deprecated("dojox.data.dom.createDocument()","Use dojox.xml.parser.parse() instead.","2.0"); -try{ -return dojox.xml.parser.parse(_1,_2); -} -catch(e){ -return null; -} -}; -dojox.data.dom.textContent=function(_3,_4){ -dojo.deprecated("dojox.data.dom.textContent()","Use dojox.xml.parser.textContent() instead.","2.0"); -if(arguments.length>1){ -return dojox.xml.parser.textContent(_3,_4); -}else{ -return dojox.xml.parser.textContent(_3); -} -}; -dojox.data.dom.replaceChildren=function(_5,_6){ -dojo.deprecated("dojox.data.dom.replaceChildren()","Use dojox.xml.parser.replaceChildren() instead.","2.0"); -dojox.xml.parser.replaceChildren(_5,_6); -}; -dojox.data.dom.removeChildren=function(_7){ -dojo.deprecated("dojox.data.dom.removeChildren()","Use dojox.xml.parser.removeChildren() instead.","2.0"); -return dojox.xml.parser.removeChildren(_7); -}; -dojox.data.dom.innerXML=function(_8){ -dojo.deprecated("dojox.data.dom.innerXML()","Use dojox.xml.parser.innerXML() instead.","2.0"); -return dojox.xml.parser.innerXML(_8); -}; -}