Card.prototype._clear = function(flags) { flags = myutil.toFlags(flags); if (flags === true) { clearableProps.forEach(Propable.unset.bind(this)); } if (myutil.flag(flags, 'action')) { this._clearAction(); } };
Window.prototype._clearAction = function() { actionProps.forEach(Propable.unset.bind(this.state.action)); };
Window.prototype._clearStatus = function() { statusProps.forEach(Propable.unset.bind(this.state.status)); };