[Pkg-javascript-commits] [backbone] 59/281: Fixes #659

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:01:56 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 5ebbeb0ce255fd51f589544d8117bee1eb99b8ea
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Mon Oct 31 10:59:54 2011 -0400

    Fixes #659
---
 backbone.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/backbone.js b/backbone.js
index fb75cb9..2e8be7e 100644
--- a/backbone.js
+++ b/backbone.js
@@ -694,9 +694,7 @@
       if (!_.isRegExp(route)) route = this._routeToRegExp(route);
       Backbone.history.route(route, _.bind(function(fragment) {
         var args = this._extractParameters(route, fragment);
-        if (callback){
-          callback.apply(this, args);
-        }
+        callback && callback.apply(this, args);
         this.trigger.apply(this, ['route:' + name].concat(args));
       }, this));
     },

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