modify()

This method should only be used when creating a Rule.

This method returns an object which modifies the properties of a behavior for that particular Rule. The modified behavior is identical to the original except that its get() method will search the modified behavior for default properties.

Syntax

new jsb.Rule(selector, behavior.modify(properties));

Example

new jsb.RuleList({
  "input.age": number,

  "input.age.adult": number.modify({min: 18})
});

See Also