//>>built
define("dojox/grid/enhanced/_Plugin","dojo/_base/kernel dojo/_base/lang dojo/_base/declare dojo/_base/array dojo/_base/connect ../EnhancedGrid".split(" "),function(h,f,g,c,e){return g("dojox.grid.enhanced._Plugin",null,{name:"plugin",grid:null,option:{},_connects:[],_subscribes:[],privates:{},constructor:function(a,b){this.grid=a;this.option=b;this._connects=[];this._subscribes=[];this.privates=f.mixin({},dojox.grid.enhanced._Plugin.prototype);this.init()},init:function(){},onPreInit:function(){},
onPostInit:function(){},onStartUp:function(){},connect:function(a,b,d){a=e.connect(a,b,this,d);this._connects.push(a);return a},disconnect:function(a){c.some(this._connects,function(b,d,c){return b==a?(e.disconnect(a),c.splice(d,1),!0):!1})},subscribe:function(a,b){var d=e.subscribe(a,this,b);this._subscribes.push(d);return d},unsubscribe:function(a){c.some(this._subscribes,function(b,d,c){return b==a?(e.unsubscribe(a),c.splice(d,1),!0):!1})},onSetStore:function(a){},destroy:function(){c.forEach(this._connects,
e.disconnect);c.forEach(this._subscribes,e.unsubscribe);delete this._connects;delete this._subscribes;delete this.option;delete this.privates}})});