We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 76c8a58 + 753ca86 commit 31368d0Copy full SHA for 31368d0
src/class.js
@@ -12,7 +12,7 @@ var Class;
12
Class = function(){};
13
14
// Create a new Class that inherits from this class
15
- Class.extend = function(prop) {
+ Class.extend = function extend(prop) {
16
var _super = this.prototype;
17
18
// Instantiate a base class (but only create the instance,
@@ -59,7 +59,7 @@ var Class;
59
Class.prototype.constructor = Class;
60
61
// And make this class extendable
62
- Class.extend = arguments.callee;
+ Class.extend = extend;
63
64
return Class;
65
};
0 commit comments