From 4672650f82eeff0c0aa39209625bc54b89b17aa9 Mon Sep 17 00:00:00 2001 From: RobertoDeveloper Date: Tue, 13 Dec 2016 10:43:43 -0500 Subject: [PATCH] Use Object.getPrototypeOf Fixed Simple typo: javascript object does not have a prototype property, rather use the Object.getPrototypeof to get hold of the prototype object and then access the constructor property. (Comments section.) --- lib/easeljs-0.8.2.combined.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/easeljs-0.8.2.combined.js b/lib/easeljs-0.8.2.combined.js index c19b381f1..4a8e22c3c 100644 --- a/lib/easeljs-0.8.2.combined.js +++ b/lib/easeljs-0.8.2.combined.js @@ -48,7 +48,7 @@ this.createjs = this.createjs||{}; * * var foo = new MySubClass(); * console.log(foo instanceof MySuperClass); // true - * console.log(foo.prototype.constructor === MySubClass); // true + * console.log(Object.getPrototypeOf(foo).constructor === MySubClass);// true * * @method extend * @param {Function} subclass The subclass. @@ -13410,4 +13410,4 @@ this.createjs = this.createjs || {}; **/ s.buildDate = /*=date*/"Thu, 26 Nov 2015 20:44:34 GMT"; // injected by build process -})(); \ No newline at end of file +})();