Requires

Provides

Node.js

Super lightweight base class for abstract elements (documents, commands, meta)

License:
Public domain (http://unlicense.org).
Authors:
Yaroslaff Fedin
  1. 22
  2. 23
  3. 24
  4. 25
  5. 26
  6. 27
  7. 28
  8. 29
  9. 30
  10. 31
  11. 32
  12. 33
  13. 34
  14. 35
  15. 36
  16. 37
  17. 38
  18. 39
  19. 40
  20. 41
  21. 42
  22. 43
  23. 44
  24. 45
  25. 46
LSD.Node = new Class({ Implements: [Events, Options, States], options: {}, initialize: function(element, options) { if (element) this.element = document.id(element) this.setOptions(options); var states = this.options.states; if (states) this.addStates(states); }, dispose: function() { if (this.element) this.element.dispose(); }, destroy: function() { if (this.parentNode) this.dispose(); if (this.element) this.element.destroy(); }, toElement: function() { return this.element; },

This declaration speeds up mootools type checks

  1. 50
  2. 51
  3. 52
  4. 53
$family: function() { return "object" } });