Requires

Contains Utility Classes that can be implemented into your own Classes to ease the execution of many common tasks.

License:
MIT-style license.

dont use typeOf in loop :)

  1. 19
  2. 20
  3. 21
  4. 22
  5. 23
  6. 24
  7. 25
  8. 26
  9. 27
  10. 28
  11. 29
  12. 30
  13. 31
  14. 32
(function(apply) { Options.prototype.setOptions = function(){ var options = this.options = Object.merge.apply(null, [{}, this.options].append(arguments)); if (this.addEvent) for (var option in options){ var value = options[option]; if (!value || (value.apply != apply) || !(/^on[A-Z]/).test(option)) continue; this.addEvent(option, options[option]); delete options[option]; } return this; } })(Function.prototype.apply);