You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
158 lines
3.7 KiB
158 lines
3.7 KiB
/* |
|
Copyright (c) 2004-2006, The Dojo Foundation |
|
All Rights Reserved. |
|
|
|
Licensed under the Academic Free License version 2.1 or above OR the |
|
modified BSD license. For more information on Dojo licensing, see: |
|
|
|
http://dojotoolkit.org/community/licensing.shtml |
|
*/ |
|
|
|
|
|
var dj_global=this; |
|
var dj_currentContext=this; |
|
function dj_undef(_1,_2){ |
|
return (typeof (_2||dj_currentContext)[_1]=="undefined"); |
|
} |
|
if(dj_undef("djConfig",this)){ |
|
var djConfig={}; |
|
} |
|
if(dj_undef("dojo",this)){ |
|
var dojo={}; |
|
} |
|
dojo.global=function(){ |
|
return dj_currentContext; |
|
}; |
|
dojo.locale=djConfig.locale; |
|
dojo.version={major:0,minor:4,patch:3,flag:"",revision:Number("$Rev: 8617 $".match(/[0-9]+/)[0]),toString:function(){ |
|
with(dojo.version){ |
|
return major+"."+minor+"."+patch+flag+" ("+revision+")"; |
|
} |
|
}}; |
|
dojo.evalProp=function(_3,_4,_5){ |
|
if((!_4)||(!_3)){ |
|
return undefined; |
|
} |
|
if(!dj_undef(_3,_4)){ |
|
return _4[_3]; |
|
} |
|
return (_5?(_4[_3]={}):undefined); |
|
}; |
|
dojo.parseObjPath=function(_6,_7,_8){ |
|
var _9=(_7||dojo.global()); |
|
var _a=_6.split("."); |
|
var _b=_a.pop(); |
|
for(var i=0,l=_a.length;i<l&&_9;i++){ |
|
_9=dojo.evalProp(_a[i],_9,_8); |
|
} |
|
return {obj:_9,prop:_b}; |
|
}; |
|
dojo.evalObjPath=function(_e,_f){ |
|
if(typeof _e!="string"){ |
|
return dojo.global(); |
|
} |
|
if(_e.indexOf(".")==-1){ |
|
return dojo.evalProp(_e,dojo.global(),_f); |
|
} |
|
var ref=dojo.parseObjPath(_e,dojo.global(),_f); |
|
if(ref){ |
|
return dojo.evalProp(ref.prop,ref.obj,_f); |
|
} |
|
return null; |
|
}; |
|
dojo.errorToString=function(_11){ |
|
if(!dj_undef("message",_11)){ |
|
return _11.message; |
|
}else{ |
|
if(!dj_undef("description",_11)){ |
|
return _11.description; |
|
}else{ |
|
return _11; |
|
} |
|
} |
|
}; |
|
dojo.raise=function(_12,_13){ |
|
if(_13){ |
|
_12=_12+": "+dojo.errorToString(_13); |
|
}else{ |
|
_12=dojo.errorToString(_12); |
|
} |
|
try{ |
|
if(djConfig.isDebug){ |
|
dojo.hostenv.println("FATAL exception raised: "+_12); |
|
} |
|
} |
|
catch(e){ |
|
} |
|
throw _13||Error(_12); |
|
}; |
|
dojo.debug=function(){ |
|
}; |
|
dojo.debugShallow=function(obj){ |
|
}; |
|
dojo.profile={start:function(){ |
|
},end:function(){ |
|
},stop:function(){ |
|
},dump:function(){ |
|
}}; |
|
function dj_eval(_15){ |
|
return dj_global.eval?dj_global.eval(_15):eval(_15); |
|
} |
|
dojo.unimplemented=function(_16,_17){ |
|
var _18="'"+_16+"' not implemented"; |
|
if(_17!=null){ |
|
_18+=" "+_17; |
|
} |
|
dojo.raise(_18); |
|
}; |
|
dojo.deprecated=function(_19,_1a,_1b){ |
|
var _1c="DEPRECATED: "+_19; |
|
if(_1a){ |
|
_1c+=" "+_1a; |
|
} |
|
if(_1b){ |
|
_1c+=" -- will be removed in version: "+_1b; |
|
} |
|
dojo.debug(_1c); |
|
}; |
|
dojo.render=(function(){ |
|
function vscaffold(_1d,_1e){ |
|
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1d}; |
|
for(var i=0;i<_1e.length;i++){ |
|
tmp[_1e[i]]=false; |
|
} |
|
return tmp; |
|
} |
|
return {name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:vscaffold(["html"],["ie","opera","khtml","safari","moz"]),svg:vscaffold(["svg"],["corel","adobe","batik"]),vml:vscaffold(["vml"],["ie"]),swf:vscaffold(["Swf","Flash","Mm"],["mm"]),swt:vscaffold(["Swt"],["ibm"])}; |
|
})(); |
|
dojo.hostenv=(function(){ |
|
var _21={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,delayMozLoadingFix:false,searchIds:[],parseWidgets:true}; |
|
if(typeof djConfig=="undefined"){ |
|
djConfig=_21; |
|
}else{ |
|
for(var _22 in _21){ |
|
if(typeof djConfig[_22]=="undefined"){ |
|
djConfig[_22]=_21[_22]; |
|
} |
|
} |
|
} |
|
return {name_:"(unset)",version_:"(unset)",getName:function(){ |
|
return this.name_; |
|
},getVersion:function(){ |
|
return this.version_; |
|
},getText:function(uri){ |
|
dojo.unimplemented("getText","uri="+uri); |
|
}}; |
|
})(); |
|
dojo.hostenv.getBaseScriptUri=function(){ |
|
if(djConfig.baseScriptUri.length){ |
|
return djConfig.baseScriptUri; |
|
} |
|
var uri=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath); |
|
if(!uri){ |
|
dojo.raise("Nothing returned by getLibraryScriptUri(): "+uri); |
|
} |
|
var _25=uri.lastIndexOf("/"); |
|
djConfig.baseScriptUri=djConfig.baseRelativePath; |
|
return djConfig.baseScriptUri; |
|
};
|
|
|