[Pkg-javascript-commits] [backbone] 187/281: lint/style tweaks to prev commit.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:02:11 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 837f774fd89f9d5a0bdd350c3ab790bd86baab6f
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Fri Jan 13 11:07:38 2012 -0500

    lint/style tweaks to prev commit.
---
 backbone.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/backbone.js b/backbone.js
index c1a84f1..d63cd85 100644
--- a/backbone.js
+++ b/backbone.js
@@ -106,7 +106,8 @@
     // same arguments as `trigger` is, apart from the event name.
     // Listening for `"all"` passes the true event name as the first argument.
     trigger : function(ev) {
-      var node, calls, tail, args, event, events = ['all', ev, null];
+      var node, calls, tail, args, event;
+      var events = ['all', ev, null];
       if (!(calls = this._callbacks)) return this;
       while (event = events.shift()) {
         if (!(node = calls[event])) continue;
@@ -114,7 +115,8 @@
         events.push({next: node.next, tail: node.tail, args: args});
       }
       while (node = events.pop()) {
-        tail = node.tail, args = node.args;
+        tail = node.tail;
+        args = node.args;
         while ((node = node.next) !== tail) {
           node.callback.apply(node.context || this, args);
         }

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