[Pkg-javascript-commits] [backbone] 05/37: Return `this` from View.setElement

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


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

js pushed a commit to tag 0.9.1
in repository backbone.

commit 4ad12bcd0ae296efa9f55be3d37347bf6544cfc7
Author: Joss Crowcroft <@josscrowcroft>
Date:   Tue Jan 31 17:18:16 2012 +0800

    Return `this` from View.setElement
---
 backbone.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/backbone.js b/backbone.js
index d6a0aa9..c5c5515 100644
--- a/backbone.js
+++ b/backbone.js
@@ -1031,6 +1031,7 @@
       this.$el = $(element);
       this.el = this.$el[0];
       if (delegate !== false) this.delegateEvents();
+      return this;
     },
 
     // Set callbacks, where `this.events` is a hash of

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