/* Copyright (c) 2004-2011, 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 */ //>>built define("dojo/_base/lang",["./kernel","../has","./sniff"],function(_1,_2){ _2.add("bug-for-in-skips-shadowed",function(){ for(var i in {toString:1}){ return 0; } return 1; }); var _3=_2("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],_4=_3.length,_5=function(_6,_7,_8){ var _9,s,i,_a={}; for(_9 in _7){ s=_7[_9]; if(!(_9 in _6)||(_6[_9]!==s&&(!(_9 in _a)||_a[_9]!==s))){ _6[_9]=_8?_8(s):s; } } if(_2("bug-for-in-skips-shadowed")){ if(_7){ for(i=0;i<_4;++i){ _9=_3[i]; s=_7[_9]; if(!(_9 in _6)||(_6[_9]!==s&&(!(_9 in _a)||_a[_9]!==s))){ _6[_9]=_8?_8(s):s; } } } } return _6; },_b=function(_c,_d){ if(!_c){ _c={}; } for(var i=1,l=arguments.length;i2){ return _e._hitchArgs.apply(_1,arguments); } if(!_31){ _31=_30; _30=null; } if(_e.isString(_31)){ _30=_30||_1.global; if(!_30[_31]){ throw (["dojo.hitch: scope[\"",_31,"\"] is null (scope=\"",_30,"\")"].join("")); } return function(){ return _30[_31].apply(_30,arguments||[]); }; } return !_30?_31:function(){ return _31.apply(_30,arguments||[]); }; },_32=(function(){ function TMP(){ }; return function(obj,_33){ TMP.prototype=obj; var tmp=new TMP(); TMP.prototype=null; if(_33){ _e._mixin(tmp,_33); } return tmp; }; })(),_34=function(obj,_35,_36){ return (_36||[]).concat(Array.prototype.slice.call(obj,_35||0)); },_2c=_2("ie")?(function(){ function _37(obj,_38,_39){ var arr=_39||[]; for(var x=_38||0;x