From 2de6261ac2581c64445daa11b21209b7eaf332c8 Mon Sep 17 00:00:00 2001 From: RobertoDeveloper Date: Thu, 15 Dec 2016 18:40:00 -0500 Subject: [PATCH] Use Object.getPrototypeof to get a hold of prototype object 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. (Line#: 51) --- 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 +})();