From 7ceab2ca63e0468ba84ee3e9e731c96ce4f0c6da Mon Sep 17 00:00:00 2001 From: Jimmy Do Date: Thu, 17 Mar 2011 14:00:12 -0700 Subject: [PATCH] Fix incorrect prototype.constructor comment prototype.constructor does not affect instanceof --- backbone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backbone.js b/backbone.js index 47e85aeb..070bede4 100644 --- a/backbone.js +++ b/backbone.js @@ -1045,7 +1045,7 @@ // Add static properties to the constructor function, if supplied. if (staticProps) _.extend(child, staticProps); - // Correctly set child's `prototype.constructor`, for `instanceof`. + // Correctly set child's `prototype.constructor`. child.prototype.constructor = child; // Set a convenience property in case the parent's prototype is needed later.