[Pkg-javascript-commits] [backbone] 92/211: Fix incorrect prototype.constructor comment

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:00:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.5.0
in repository backbone.

commit 7ceab2ca63e0468ba84ee3e9e731c96ce4f0c6da
Author: Jimmy Do <jimmy at jimmydo.net>
Date:   Thu Mar 17 14:00:12 2011 -0700

    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 47e85ae..070bede 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.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list