return { browser: match[1] || "", version: match[2] || "0" };
},
- subclass: function(){
+ sub: function() {
function jQuerySubclass( selector, context ) {
return new jQuerySubclass.fn.init( selector, context );
}
});
});
-test("jQuery.subclass", function(){
+test("jQuery.sub() - Static Methods", function(){
expect(18);
- var Subclass = jQuery.subclass();
+ var Subclass = jQuery.sub();
Subclass.extend({
topLevelMethod: function() {return this.debug;},
debug: false,
equal(jQuery.ajax, Subclass.ajax, 'The subclass failed to get all top level methods');
//Create a SubSubclass
- var SubSubclass = Subclass.subclass();
+ var SubSubclass = Subclass.sub();
//Make Sure the SubSubclass inherited properly
ok(SubSubclass.topLevelMethod() === false, 'SubSubclass.topLevelMethod thought debug was true');
equal(jQuery.ajax, Subclass.ajax, 'The subclass failed to get all top level methods');
});
-test("jQuery.subclass()", function(){
+test("jQuery.sub() - .fn Methods", function(){
expect(378);
- var Subclass = jQuery.subclass(),
- SubclassSubclass = Subclass.subclass(),
+ var Subclass = jQuery.sub(),
+ SubclassSubclass = Subclass.sub(),
jQueryDocument = jQuery(document),
selectors, contexts, methods, method, arg, description;