[Pkg-javascript-commits] [backbone] 16/23: fixes #459, inconsistency with constructor/initialize.

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


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

js pushed a commit to tag 0.5.1
in repository backbone.

commit d3c9a9b0d5d6a8e8e2cc0190bf00a8d5c9dfbef7
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Tue Jul 5 08:58:13 2011 -0400

    fixes #459, inconsistency with constructor/initialize.
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index d059d5f..6a2e518 100644
--- a/backbone.js
+++ b/backbone.js
@@ -143,7 +143,7 @@
     this._changed = false;
     this._previousAttributes = _.clone(this.attributes);
     if (options && options.collection) this.collection = options.collection;
-    this.initialize.apply(this, arguments);
+    this.initialize(attributes, options);
   };
 
   // Attach all inheritable methods to the Model prototype.

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