You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2009/03/19 12:11:05 UTC

svn commit: r755920 [4/11] - in /camel/trunk/components/camel-web/src/main/webapp/js/dojox: json/ jsonPath/ lang/ lang/aspect/ lang/functional/ lang/oo/ layout/ layout/dnd/ layout/ext-dijit/ layout/ext-dijit/layout/ layout/nls/ layout/nls/en/ layout/nl...

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/math/matrix.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/math/matrix.js?rev=755920&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/math/matrix.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/math/matrix.js Thu Mar 19 11:10:58 2009
@@ -0,0 +1,251 @@
+/*
+	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.math.matrix"]){
+dojo._hasResource["dojox.math.matrix"]=true;
+dojo.provide("dojox.math.matrix");
+dojo.mixin(dojox.math.matrix,{iDF:0,ALMOST_ZERO:1e-10,multiply:function(a,b){
+var ay=a.length,ax=a[0].length,by=b.length,bx=b[0].length;
+if(ax!=by){
+console.warn("Can't multiply matricies of sizes "+ax+","+ay+" and "+bx+","+by);
+return [[0]];
+}
+var c=[];
+for(var k=0;k<ay;k++){
+c[k]=[];
+for(var i=0;i<bx;i++){
+c[k][i]=0;
+for(var m=0;m<ax;m++){
+c[k][i]+=a[k][m]*b[m][i];
+}
+}
+}
+return c;
+},product:function(){
+if(arguments.length==0){
+console.warn("can't multiply 0 matrices!");
+return 1;
+}
+var m=arguments[0];
+for(var i=1;i<arguments.length;i++){
+m=this.multiply(m,arguments[i]);
+}
+return m;
+},sum:function(){
+if(arguments.length==0){
+console.warn("can't sum 0 matrices!");
+return 0;
+}
+var m=this.copy(arguments[0]);
+var _e=m.length;
+if(_e==0){
+console.warn("can't deal with matrices of 0 rows!");
+return 0;
+}
+var _f=m[0].length;
+if(_f==0){
+console.warn("can't deal with matrices of 0 cols!");
+return 0;
+}
+for(var i=1;i<arguments.length;++i){
+var arg=arguments[i];
+if(arg.length!=_e||arg[0].length!=_f){
+console.warn("can't add matrices of different dimensions: first dimensions were "+_e+"x"+_f+", current dimensions are "+arg.length+"x"+arg[0].length);
+return 0;
+}
+for(var r=0;r<_e;r++){
+for(var c=0;c<_f;c++){
+m[r][c]+=arg[r][c];
+}
+}
+}
+return m;
+},inverse:function(a){
+if(a.length==1&&a[0].length==1){
+return [[1/a[0][0]]];
+}
+var tms=a.length,m=this.create(tms,tms),mm=this.adjoint(a),det=this.determinant(a),dd=0;
+if(det==0){
+console.warn("Determinant Equals 0, Not Invertible.");
+return [[0]];
+}else{
+dd=1/det;
+}
+for(var i=0;i<tms;i++){
+for(var j=0;j<tms;j++){
+m[i][j]=dd*mm[i][j];
+}
+}
+return m;
+},determinant:function(a){
+if(a.length!=a[0].length){
+console.warn("Can't calculate the determinant of a non-squre matrix!");
+return 0;
+}
+var tms=a.length,det=1,b=this.upperTriangle(a);
+for(var i=0;i<tms;i++){
+var bii=b[i][i];
+if(Math.abs(bii)<this.ALMOST_ZERO){
+return 0;
+}
+det*=bii;
+}
+det*=this.iDF;
+return det;
+},upperTriangle:function(m){
+m=this.copy(m);
+var f1=0,_24=0,tms=m.length,v=1;
+this.iDF=1;
+for(var col=0;col<tms-1;col++){
+if(typeof m[col][col]!="number"){
+console.warn("non-numeric entry found in a numeric matrix: m["+col+"]["+col+"]="+m[col][col]);
+}
+v=1;
+var _28=0;
+while((m[col][col]==0)&&!_28){
+if(col+v>=tms){
+this.iDF=0;
+_28=1;
+}else{
+for(var r=0;r<tms;r++){
+_24=m[col][r];
+m[col][r]=m[col+v][r];
+m[col+v][r]=_24;
+}
+v++;
+this.iDF*=-1;
+}
+}
+for(var row=col+1;row<tms;row++){
+if(typeof m[row][col]!="number"){
+console.warn("non-numeric entry found in a numeric matrix: m["+row+"]["+col+"]="+m[row][col]);
+}
+if(typeof m[col][row]!="number"){
+console.warn("non-numeric entry found in a numeric matrix: m["+col+"]["+row+"]="+m[col][row]);
+}
+if(m[col][col]!=0){
+var f1=(-1)*m[row][col]/m[col][col];
+for(var i=col;i<tms;i++){
+m[row][i]=f1*m[col][i]+m[row][i];
+}
+}
+}
+}
+return m;
+},create:function(a,b,_2e){
+_2e=_2e||0;
+var m=[];
+for(var i=0;i<b;i++){
+m[i]=[];
+for(var j=0;j<a;j++){
+m[i][j]=_2e;
+}
+}
+return m;
+},ones:function(a,b){
+return this.create(a,b,1);
+},zeros:function(a,b){
+return this.create(a,b);
+},identity:function(_36,_37){
+_37=_37||1;
+var m=[];
+for(var i=0;i<_36;i++){
+m[i]=[];
+for(var j=0;j<_36;j++){
+m[i][j]=(i==j?_37:0);
+}
+}
+return m;
+},adjoint:function(a){
+var tms=a.length;
+if(tms<=1){
+console.warn("Can't find the adjoint of a matrix with a dimension less than 2");
+return [[0]];
+}
+if(a.length!=a[0].length){
+console.warn("Can't find the adjoint of a non-square matrix");
+return [[0]];
+}
+var m=this.create(tms,tms),ap=this.create(tms-1,tms-1);
+var ii=0,jj=0,ia=0,ja=0,det=0;
+for(var i=0;i<tms;i++){
+for(var j=0;j<tms;j++){
+ia=0;
+for(ii=0;ii<tms;ii++){
+if(ii==i){
+continue;
+}
+ja=0;
+for(jj=0;jj<tms;jj++){
+if(jj==j){
+continue;
+}
+ap[ia][ja]=a[ii][jj];
+ja++;
+}
+ia++;
+}
+det=this.determinant(ap);
+m[i][j]=Math.pow(-1,(i+j))*det;
+}
+}
+return this.transpose(m);
+},transpose:function(a){
+var m=this.create(a.length,a[0].length);
+for(var i=0;i<a.length;i++){
+for(var j=0;j<a[i].length;j++){
+m[j][i]=a[i][j];
+}
+}
+return m;
+},format:function(a,_4b){
+_4b=_4b||5;
+function _4c(x,dp){
+var fac=Math.pow(10,dp);
+var a=Math.round(x*fac)/fac;
+var b=a.toString();
+if(b.charAt(0)!="-"){
+b=" "+b;
+}
+if(b.indexOf(".")>-1){
+b+=".";
+}
+while(b.length<dp+3){
+b+="0";
+}
+return b;
+};
+var ya=a.length;
+var xa=ya>0?a[0].length:0;
+var _54="";
+for(var y=0;y<ya;y++){
+_54+="| ";
+for(var x=0;x<xa;x++){
+_54+=_4c(a[y][x],_4b)+" ";
+}
+_54+="|\n";
+}
+return _54;
+},copy:function(a){
+var ya=a.length,xa=a[0].length,m=this.create(xa,ya);
+for(var y=0;y<ya;y++){
+for(var x=0;x<xa;x++){
+m[y][x]=a[y][x];
+}
+}
+return m;
+},scale:function(a,_5e){
+a=this.copy(a);
+var ya=a.length,xa=a[0].length;
+for(var y=0;y<ya;y++){
+for(var x=0;x<xa;x++){
+a[y][x]*=_5e;
+}
+}
+return a;
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/math/matrix.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/math/round.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/math/round.js?rev=755920&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/math/round.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/math/round.js Thu Mar 19 11:10:58 2009
@@ -0,0 +1,30 @@
+/*
+	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.math.round"]){
+dojo._hasResource["dojox.math.round"]=true;
+dojo.provide("dojox.math.round");
+dojo.experimental("dojox.math.round");
+dojox.math.round=function(_1,_2,_3){
+var _4=Math.log(Math.abs(_1))/Math.log(10);
+var _5=10/(_3||10);
+var _6=Math.pow(10,-15+_4);
+return (_5*(+_1+(_1>0?_6:-_6))).toFixed(_2)/_5;
+};
+if((0.9).toFixed()==0){
+(function(){
+var _7=dojox.math.round;
+dojox.math.round=function(v,p,m){
+var d=Math.pow(10,-p||0),a=Math.abs(v);
+if(!v||a>=d||a*Math.pow(10,p+1)<5){
+d=0;
+}
+return _7(v,p,m)+(v>0?d:-d);
+};
+})();
+}
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/math/round.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/README
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/README?rev=755920&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/README (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/README Thu Mar 19 11:10:58 2009
@@ -0,0 +1,28 @@
+-------------------------------------------------------------------------------
+Dojo Offline
+-------------------------------------------------------------------------------
+Release date: May 2007 (Release date used as version)
+-------------------------------------------------------------------------------
+Project state:
+experimental
+-------------------------------------------------------------------------------
+Credits
+	Brad Neuberg
+	SitePen
+-------------------------------------------------------------------------------
+Project description
+Toolkit to help build offline web applications; uses Google Gears under the covers.
+-------------------------------------------------------------------------------
+Dependencies:
+Dojo Storage, Dojo Crypto, Dojo Core, Google Gears
+-------------------------------------------------------------------------------
+Documentation
+
+See http://docs.google.com/View?docid=dhkhksk4_8gdp9gr for documentation and a t
+utorial on using Dojo Offline.
+
+-------------------------------------------------------------------------------
+Installation instructions
+
+See full documentation at URL given right above.
+-------------------------------------------------------------------------------

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/README
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/_common.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/_common.js?rev=755920&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/_common.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/_common.js Thu Mar 19 11:10:58 2009
@@ -0,0 +1,178 @@
+/*
+	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.off._common"]){
+dojo._hasResource["dojox.off._common"]=true;
+dojo.provide("dojox.off._common");
+dojo.require("dojo.gears");
+dojo.require("dojox.storage");
+dojo.require("dojox.sql");
+dojo.require("dojox.off.sync");
+dojo.mixin(dojox.off,{isOnline:false,NET_CHECK:5,STORAGE_NAMESPACE:"_dot",enabled:true,availabilityURL:dojo.moduleUrl("dojox","off/network_check.txt"),goingOnline:false,coreOpFailed:false,doNetChecking:true,hasOfflineCache:null,browserRestart:false,_STORAGE_APP_NAME:window.location.href.replace(/[^0-9A-Za-z_]/g,"_"),_initializeCalled:false,_storageLoaded:false,_pageLoaded:false,onLoad:function(){
+},onNetwork:function(_1){
+},initialize:function(){
+this._initializeCalled=true;
+if(this._storageLoaded&&this._pageLoaded){
+this._onLoad();
+}
+},goOffline:function(){
+if((dojox.off.sync.isSyncing)||(this.goingOnline)){
+return;
+}
+this.goingOnline=false;
+this.isOnline=false;
+},goOnline:function(_2){
+if(dojox.off.sync.isSyncing||dojox.off.goingOnline){
+return;
+}
+this.goingOnline=true;
+this.isOnline=false;
+this._isSiteAvailable(_2);
+},onFrameworkEvent:function(_3,_4){
+if(_3=="save"){
+if(_4.isCoreSave&&(_4.status==dojox.storage.FAILED)){
+dojox.off.coreOpFailed=true;
+dojox.off.enabled=false;
+dojox.off.onFrameworkEvent("coreOperationFailed");
+}
+}else{
+if(_3=="coreOperationFailed"){
+dojox.off.coreOpFailed=true;
+dojox.off.enabled=false;
+}
+}
+},_checkOfflineCacheAvailable:function(_5){
+this.hasOfflineCache=dojo.gears.available;
+_5();
+},_onLoad:function(){
+dojox.off.files.cache(dojo.moduleUrl("dojo","dojo.js"));
+this._cacheDojoResources();
+dojox.off.files.cache(dojox.storage.manager.getResourceList());
+dojox.off.files._slurp();
+this._checkOfflineCacheAvailable(dojo.hitch(this,"_onOfflineCacheChecked"));
+},_onOfflineCacheChecked:function(){
+if(this.hasOfflineCache&&this.enabled){
+this._load(dojo.hitch(this,"_finishStartingUp"));
+}else{
+if(this.hasOfflineCache&&!this.enabled){
+this._finishStartingUp();
+}else{
+this._keepCheckingUntilInstalled();
+}
+}
+},_keepCheckingUntilInstalled:function(){
+this._finishStartingUp();
+},_finishStartingUp:function(){
+if(!this.hasOfflineCache){
+this.onLoad();
+}else{
+if(this.enabled){
+this._startNetworkThread();
+this.goOnline(dojo.hitch(this,function(){
+dojox.off.onLoad();
+}));
+}else{
+if(this.coreOpFailed){
+this.onFrameworkEvent("coreOperationFailed");
+}else{
+this.onLoad();
+}
+}
+}
+},_onPageLoad:function(){
+this._pageLoaded=true;
+if(this._storageLoaded&&this._initializeCalled){
+this._onLoad();
+}
+},_onStorageLoad:function(){
+this._storageLoaded=true;
+if(!dojox.storage.manager.isAvailable()&&dojox.storage.manager.isInitialized()){
+this.coreOpFailed=true;
+this.enabled=false;
+}
+if(this._pageLoaded&&this._initializeCalled){
+this._onLoad();
+}
+},_isSiteAvailable:function(_6){
+dojo.xhrGet({url:this._getAvailabilityURL(),handleAs:"text",timeout:this.NET_CHECK*1000,error:dojo.hitch(this,function(_7){
+this.goingOnline=false;
+this.isOnline=false;
+if(_6){
+_6(false);
+}
+}),load:dojo.hitch(this,function(_8){
+this.goingOnline=false;
+this.isOnline=true;
+if(_6){
+_6(true);
+}else{
+this.onNetwork("online");
+}
+})});
+},_startNetworkThread:function(){
+if(!this.doNetChecking){
+return;
+}
+window.setInterval(dojo.hitch(this,function(){
+var d=dojo.xhrGet({url:this._getAvailabilityURL(),handleAs:"text",timeout:this.NET_CHECK*1000,error:dojo.hitch(this,function(_a){
+if(this.isOnline){
+this.isOnline=false;
+try{
+if(typeof d.ioArgs.xhr.abort=="function"){
+d.ioArgs.xhr.abort();
+}
+}
+catch(e){
+}
+dojox.off.sync.isSyncing=false;
+this.onNetwork("offline");
+}
+}),load:dojo.hitch(this,function(_b){
+if(!this.isOnline){
+this.isOnline=true;
+this.onNetwork("online");
+}
+})});
+}),this.NET_CHECK*1000);
+},_getAvailabilityURL:function(){
+var _c=this.availabilityURL.toString();
+if(_c.indexOf("?")==-1){
+_c+="?";
+}else{
+_c+="&";
+}
+_c+="browserbust="+new Date().getTime();
+return _c;
+},_onOfflineCacheInstalled:function(){
+this.onFrameworkEvent("offlineCacheInstalled");
+},_cacheDojoResources:function(){
+var _d=true;
+dojo.forEach(dojo.query("script"),function(i){
+var _f=i.getAttribute("src");
+if(!_f){
+return;
+}
+if(_f.indexOf("_base/_loader/bootstrap.js")!=-1){
+_d=false;
+}
+});
+if(!_d){
+dojox.off.files.cache(dojo.moduleUrl("dojo","_base.js").uri);
+dojox.off.files.cache(dojo.moduleUrl("dojo","_base/_loader/loader.js").uri);
+dojox.off.files.cache(dojo.moduleUrl("dojo","_base/_loader/bootstrap.js").uri);
+dojox.off.files.cache(dojo.moduleUrl("dojo","_base/_loader/hostenv_browser.js").uri);
+}
+for(var i=0;i<dojo._loadedUrls.length;i++){
+dojox.off.files.cache(dojo._loadedUrls[i]);
+}
+},_save:function(){
+},_load:function(_11){
+dojox.off.sync._load(_11);
+}});
+dojox.storage.manager.addOnLoad(dojo.hitch(dojox.off,"_onStorageLoad"));
+dojo.addOnLoad(dojox.off,"_onPageLoad");
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/_common.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/docs/bookmarklets.html
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/docs/bookmarklets.html?rev=755920&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/docs/bookmarklets.html (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/docs/bookmarklets.html Thu Mar 19 11:10:58 2009
@@ -0,0 +1,10 @@
+<html>
+<body>
+<h1>Browser Bookmarklets</h1>
+
+<p>Drag the following bookmarklets to your links toolbar and press to clear the Google Gears cache:</p>
+
+<p>Firefox: <a title="Clear Gears Cache" href="javascript:(function(){new GearsFactory().create('beta.localserver', '1.0').removeStore('dot_store_'+window.location.href.replace(/[^0-9A-Za-z_]/g, '_'));dojox.storage.remove('oldVersion', '_dot');}())">Clear Gears Cache</a></p>
+<p>Internet Explorer: <a title="Clear Gears Cache" href="javascript:(function(){new ActiveXObject('Gears.Factory').create('beta.localserver', '1.0').removeStore('dot_store_'+window.location.href.replace(/[^0-9A-Za-z_]/g, '_'));dojox.storage.remove('oldVersion', '_dot');}())">Clear Gears Cache</a></p>
+</body>
+</html>

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/docs/bookmarklets.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/files.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/files.js?rev=755920&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/files.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/files.js Thu Mar 19 11:10:58 2009
@@ -0,0 +1,238 @@
+/*
+	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.off.files"]){
+dojo._hasResource["dojox.off.files"]=true;
+dojo.provide("dojox.off.files");
+dojox.off.files={versionURL:"version.js",listOfURLs:[],refreshing:false,_cancelID:null,_error:false,_errorMessages:[],_currentFileIndex:0,_store:null,_doSlurp:false,slurp:function(){
+this._doSlurp=true;
+},cache:function(_1){
+if(dojo.isString(_1)){
+var _2=this._trimAnchor(_1+"");
+if(!this.isAvailable(_2)){
+this.listOfURLs.push(_2);
+}
+}else{
+if(_1 instanceof dojo._Url){
+var _2=this._trimAnchor(_1.uri);
+if(!this.isAvailable(_2)){
+this.listOfURLs.push(_2);
+}
+}else{
+dojo.forEach(_1,function(_3){
+_3=this._trimAnchor(_3);
+if(!this.isAvailable(_3)){
+this.listOfURLs.push(_3);
+}
+},this);
+}
+}
+},printURLs:function(){
+
+dojo.forEach(this.listOfURLs,function(i){
+
+});
+},remove:function(_5){
+for(var i=0;i<this.listOfURLs.length;i++){
+if(this.listOfURLs[i]==_5){
+this.listOfURLs=this.listOfURLs.splice(i,1);
+break;
+}
+}
+},isAvailable:function(_7){
+for(var i=0;i<this.listOfURLs.length;i++){
+if(this.listOfURLs[i]==_7){
+return true;
+}
+}
+return false;
+},refresh:function(_9){
+try{
+if(dojo.config.isDebug){
+this.printURLs();
+}
+this.refreshing=true;
+if(this.versionURL){
+this._getVersionInfo(function(_a,_b,_c){
+if(dojo.config.isDebug||!_b||_c||!_a||_a!=_b){
+console.warn("Refreshing offline file list");
+this._doRefresh(_9,_b);
+}else{
+console.warn("No need to refresh offline file list");
+_9(false,[]);
+}
+});
+}else{
+console.warn("Refreshing offline file list");
+this._doRefresh(_9);
+}
+}
+catch(e){
+this.refreshing=false;
+dojox.off.coreOpFailed=true;
+dojox.off.enabled=false;
+dojox.off.onFrameworkEvent("coreOperationFailed");
+}
+},abortRefresh:function(){
+if(!this.refreshing){
+return;
+}
+this._store.abortCapture(this._cancelID);
+this.refreshing=false;
+},_slurp:function(){
+if(!this._doSlurp){
+return;
+}
+var _d=dojo.hitch(this,function(_e){
+if(this._sameLocation(_e)){
+this.cache(_e);
+}
+});
+_d(window.location.href);
+dojo.query("script").forEach(function(i){
+try{
+_d(i.getAttribute("src"));
+}
+catch(exp){
+}
+});
+dojo.query("link").forEach(function(i){
+try{
+if(!i.getAttribute("rel")||i.getAttribute("rel").toLowerCase()!="stylesheet"){
+return;
+}
+_d(i.getAttribute("href"));
+}
+catch(exp){
+}
+});
+dojo.query("img").forEach(function(i){
+try{
+_d(i.getAttribute("src"));
+}
+catch(exp){
+}
+});
+dojo.query("a").forEach(function(i){
+try{
+_d(i.getAttribute("href"));
+}
+catch(exp){
+}
+});
+dojo.forEach(document.styleSheets,function(_13){
+try{
+if(_13.cssRules){
+dojo.forEach(_13.cssRules,function(_14){
+var _15=_14.cssText;
+if(_15){
+var _16=_15.match(/url\(\s*([^\) ]*)\s*\)/i);
+if(!_16){
+return;
+}
+for(var i=1;i<_16.length;i++){
+_d(_16[i]);
+}
+}
+});
+}else{
+if(_13.cssText){
+var _18;
+var _19=_13.cssText.toString();
+var _1a=_19.split(/\f|\r|\n/);
+for(var i=0;i<_1a.length;i++){
+_18=_1a[i].match(/url\(\s*([^\) ]*)\s*\)/i);
+if(_18&&_18.length){
+_d(_18[1]);
+}
+}
+}
+}
+}
+catch(exp){
+}
+});
+},_sameLocation:function(url){
+if(!url){
+return false;
+}
+if(url.length&&url.charAt(0)=="#"){
+return false;
+}
+url=new dojo._Url(url);
+if(!url.scheme&&!url.port&&!url.host){
+return true;
+}
+if(!url.scheme&&url.host&&url.port&&window.location.hostname==url.host&&window.location.port==url.port){
+return true;
+}
+if(!url.scheme&&url.host&&!url.port&&window.location.hostname==url.host&&window.location.port==80){
+return true;
+}
+return window.location.protocol==(url.scheme+":")&&window.location.hostname==url.host&&(window.location.port==url.port||!window.location.port&&!url.port);
+},_trimAnchor:function(url){
+return url.replace(/\#.*$/,"");
+},_doRefresh:function(_1e,_1f){
+var _20;
+try{
+_20=google.gears.factory.create("beta.localserver","1.0");
+}
+catch(exp){
+dojo.setObject("google.gears.denied",true);
+dojox.off.onFrameworkEvent("coreOperationFailed");
+throw "Google Gears must be allowed to run";
+}
+var _21="dot_store_"+window.location.href.replace(/[^0-9A-Za-z_]/g,"_");
+if(_21.length>=64){
+_21=_21.substring(0,63);
+}
+_20.removeStore(_21);
+_20.openStore(_21);
+var _22=_20.createStore(_21);
+this._store=_22;
+var _23=this;
+this._currentFileIndex=0;
+this._cancelID=_22.capture(this.listOfURLs,function(url,_25,_26){
+if(!_25&&_23.refreshing){
+_23._cancelID=null;
+_23.refreshing=false;
+var _27=[];
+_27.push("Unable to capture: "+url);
+_1e(true,_27);
+return;
+}else{
+if(_25){
+_23._currentFileIndex++;
+}
+}
+if(_25&&_23._currentFileIndex>=_23.listOfURLs.length){
+_23._cancelID=null;
+_23.refreshing=false;
+if(_1f){
+dojox.storage.put("oldVersion",_1f,null,dojox.off.STORAGE_NAMESPACE);
+}
+dojox.storage.put("justDebugged",dojo.config.isDebug,null,dojox.off.STORAGE_NAMESPACE);
+_1e(false,[]);
+}
+});
+},_getVersionInfo:function(_28){
+var _29=dojox.storage.get("justDebugged",dojox.off.STORAGE_NAMESPACE);
+var _2a=dojox.storage.get("oldVersion",dojox.off.STORAGE_NAMESPACE);
+var _2b=null;
+_28=dojo.hitch(this,_28);
+dojo.xhrGet({url:this.versionURL+"?browserbust="+new Date().getTime(),timeout:5*1000,handleAs:"javascript",error:function(err){
+dojox.storage.remove("oldVersion",dojox.off.STORAGE_NAMESPACE);
+dojox.storage.remove("justDebugged",dojox.off.STORAGE_NAMESPACE);
+_28(_2a,_2b,_29);
+},load:function(_2d){
+if(_2d){
+_2b=_2d;
+}
+_28(_2a,_2b,_29);
+}});
+}};
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/files.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/network_check.txt
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/network_check.txt?rev=755920&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/network_check.txt (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/network_check.txt Thu Mar 19 11:10:58 2009
@@ -0,0 +1 @@
+1

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/off/network_check.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain