//>>built define("dojo/_base/kernel dojo/_base/lang dojo/_base/array dojo/_base/declare dojo/Stateful ./getStateful ./getPlainValue ./StatefulArray".split(" "),function(l,e,g,m,p,h,f,k){l.deprecated("dojox/mvc/StatefulModel","Use dojox/mvc/getStateful, dojox/mvc/getPlainValue, dojox/mvc/StatefulArray or one of the dojox/mvc/*RefControllers instead");var d=m("dojox.mvc.StatefulModel",[p],{data:null,store:null,valid:!0,value:"",reset:function(){if(!e.isObject(this.data)||this.data instanceof Date||this.data instanceof RegExp)this.set("value",this.data);else for(var a in this)this[a]&&e.isFunction(this[a].reset)&&this[a].reset()},commit:function(a){this._commit();(a=a||this.store)&&this._saveToStore(a)},toPlainObject:function(){return f(this,d.getPlainValueOptions)},splice:function(a,b){for(var c=(new k([])).splice.apply(this,e._toArray(arguments)),d=0;d