Beispiel #1
0
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();
  }
};
Beispiel #2
0
Window.prototype._clearAction = function() {
  actionProps.forEach(Propable.unset.bind(this.state.action));
};
Beispiel #3
0
Window.prototype._clearStatus = function() {
  statusProps.forEach(Propable.unset.bind(this.state.status));
};