//>>built define("dojox/mvc/StatefulModel",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/Stateful","./getStateful","./getPlainValue","./StatefulArray"],function(_1,_2,_3,_4,_5,_6,_7,_8){ _1.deprecated("dojox/mvc/StatefulModel","Use dojox/mvc/getStateful, dojox/mvc/getPlainValue, dojox/mvc/StatefulArray or one of the dojox/mvc/*RefControllers instead"); var _9=_4("dojox.mvc.StatefulModel",[_5],{data:null,store:null,valid:true,value:"",reset:function(){ if(_2.isObject(this.data)&&!(this.data instanceof Date)&&!(this.data instanceof RegExp)){ for(var x in this){ if(this[x]&&_2.isFunction(this[x].reset)){ this[x].reset(); } } }else{ this.set("value",this.data); } },commit:function(_a){ this._commit(); var ds=_a||this.store; if(ds){ this._saveToStore(ds); } },toPlainObject:function(){ return _7(this,_9.getPlainValueOptions); },splice:function(_b,n){ var a=(new _8([])).splice.apply(this,_2._toArray(arguments)); for(var i=0;i