/* Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojo.Stateful"]){ dojo._hasResource["dojo.Stateful"]=true; dojo.provide("dojo.Stateful"); dojo.declare("dojo.Stateful",null,{postscript:function(_1){ if(_1){ dojo.mixin(this,_1); } },get:function(_2){ return this[_2]; },set:function(_3,_4){ if(typeof _3==="object"){ for(var x in _3){ this.set(x,_3[x]); } return this; } var _5=this[_3]; this[_3]=_4; if(this._watchCallbacks){ this._watchCallbacks(_3,_5,_4); } return this; },watch:function(_6,_7){ var _8=this._watchCallbacks; if(!_8){ var _9=this; _8=this._watchCallbacks=function(_a,_b,_c,_d){ var _e=function(_f){ for(var i=0,l=_f&&_f.length;i