[Pkg-javascript-commits] [backbone] 222/281: Fixes #555 -- don't return the parent constructor's value.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:02:15 UTC 2014


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

js pushed a commit to tag 0.9.0
in repository backbone.

commit f417ddd1ab078e5d615229296b9b53a188f24d53
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Tue Jan 17 16:13:28 2012 -0500

    Fixes #555 -- don't return the parent constructor's value.
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index 6009e63..4b61859 100644
--- a/backbone.js
+++ b/backbone.js
@@ -1175,7 +1175,7 @@
     if (protoProps && protoProps.hasOwnProperty('constructor')) {
       child = protoProps.constructor;
     } else {
-      child = function(){ return parent.apply(this, arguments); };
+      child = function(){ parent.apply(this, arguments); };
     }
 
     // Inherit class (static) properties from parent.

-- 
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