[Pkg-javascript-commits] [backbone] 14/28: merging the jcoglan's patch

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:01:25 UTC 2014


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

js pushed a commit to tag 0.5.3
in repository backbone.

commit 89bdddde9c45a8efb2f12b5ef02a2c720b2d6d20
Merge: f399b04 f77033d
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Fri Jul 29 10:31:10 2011 -0400

    merging the jcoglan's patch

 examples/todos/todos.js | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --cc examples/todos/todos.js
index d7935a5,38f1f6e..4496a3f
--- a/examples/todos/todos.js
+++ b/examples/todos/todos.js
@@@ -102,8 -96,9 +96,8 @@@ $(function()
      // a one-to-one correspondence between a **Todo** and a **TodoView** in this
      // app, we set a direct reference on the model for convenience.
      initialize: function() {
 -      _.bindAll(this, 'render', 'close', 'remove');
 -      this.model.bind('change', this.render);
 -      this.model.bind('destroy', this.remove);
 +      this.model.bind('change', this.render, this);
-       this.model.view = this;
++      this.model.bind('destroy', this.remove, this);
      },
  
      // Re-render the contents of the todo item.

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