diff --git a/core.js b/core.js index b94a39a..5f137e9 100644 --- a/core.js +++ b/core.js @@ -1,7 +1,7 @@ /* Thanks to http://phrogz.net/js/classes/OOPinJS2.html */ Function.prototype.inheritsFrom = function(parentObject) { - if(parentClassOrObject.constructor == Function) + if(parentObject.constructor == Function) { /* Normal Inheritance */ this.prototype = new parentObject;