jquery class inheritance
jquery, oop
Solution
For OO, it's best to look outside jQuery. jQuery is based on collections returned by selectors.
If you want classes, some choices are Base2, Joose, and JS.Class.
Problem
``` var A=function(){ }; $.extend(A.prototype, { init:function(){ alert('A init'); } }); var B=function(){ }; $.extend(B.prototype,A.prototype,{ init:function(){ alert('B init'); } }); var p=new A(); p.init(); var x=new B(); x.init(); ``` is the above the best way to create class and inheritance in jQuery? In B's init how do I invoke parent's init (similar to super.init() in OO languages)?