Skip to content

Commit eb752c7

Browse files
committed
Make JSONEditor strict mode compliant
1 parent 3556159 commit eb752c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/class.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var Class;
1212
Class = function(){};
1313

1414
// Create a new Class that inherits from this class
15-
Class.extend = function(prop) {
15+
Class.extend = function extend(prop) {
1616
var _super = this.prototype;
1717

1818
// Instantiate a base class (but only create the instance,
@@ -59,7 +59,7 @@ var Class;
5959
Class.prototype.constructor = Class;
6060

6161
// And make this class extendable
62-
Class.extend = arguments.callee;
62+
Class.extend = extend;
6363

6464
return Class;
6565
};

0 commit comments

Comments
 (0)