//>>built
define("dojox/form/manager/_EnableMixin",["dojo/_base/lang","dojo/_base/kernel","dojo/dom-attr","./_Mixin","dojo/_base/declare"],function(g,d,h,n,m){d=g.getObject("dojox.form.manager",!0);var k=d.actionAdapter,l=d.inspectorAdapter;return m("dojox.form.manager._EnableMixin",null,{gatherEnableState:function(b){var a=this.inspectFormWidgets(l(function(e,c){return!c.get("disabled")}),b);this.inspectFormNodes&&g.mixin(a,this.inspectFormNodes(l(function(e,c){return!h.get(c,"disabled")}),b));return a},enable:function(b,
a){if(2>arguments.length||void 0===a)a=!0;this.inspectFormWidgets(k(function(e,c,f){c.set("disabled",!f)}),b,a);this.inspectFormNodes&&this.inspectFormNodes(k(function(e,c,f){h.set(c,"disabled",!f)}),b,a);return this},disable:function(b){var a=this.gatherEnableState();this.enable(b,!1);return a}})});