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.
1 parent 3556159 commit eb752c7Copy full SHA for eb752c7
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