Skip to content

Commit 80fd592

Browse files
committed
fix class creation
1 parent 25c6234 commit 80fd592

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

jquery-class/jquery.class.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ $.Class = function(definition) {
2121
}
2222

2323
var pointer = registerNameSpace(definition.namespace.split('.'), window);
24-
$.extend(pointer[definition.namespace.split('.').pop()], definition);
25-
26-
return new Class();
24+
return $.extend(pointer[definition.namespace.split('.').pop()], new Class());
2725
};

0 commit comments

Comments
 (0)