jquery-klass


Adds classes to jQuery as a plugin

Full class implementation in JavaScript through jQuery.

  • Light (Under 1 KB). Over half the time was spent reducing code-size.
  • Supports Inheritance
  • Support Calling super methods
  • Constructors
  • Faster than "module" pattern
  • Light syntax
  • Saves memory compared to "module" pattern (1 or 1000 instances all share same methods)
  • Short jQuery syntax like "$.klass", ".init",
  • Mixin support (like Perl, Python, Ruby)
  • Multiple levels of inheritance (some JavaScript libraries only support one level of inheritance)
  • Built in ability to bind methods to events while preserving 'this'
  • Ability to bind event object to pass through to object methods

Project Information

Labels:
jquery class klass javascript