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