[Pkg-javascript-commits] [backbone] 25/28: allow history start to not call initial route

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:01:26 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 b1574b1034e8e639af6aad78cb3022cc2b547a67
Author: tbranyen <tim at tabdeveloper.com>
Date:   Sun Aug 7 00:08:56 2011 -0400

    allow history start to not call initial route
---
 backbone.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index 69ea96d..0499281 100644
--- a/backbone.js
+++ b/backbone.js
@@ -812,7 +812,10 @@
         this.fragment = loc.hash.replace(hashStrip, '');
         window.history.replaceState({}, document.title, loc.protocol + '//' + loc.host + this.options.root + this.fragment);
       }
-      return this.loadUrl();
+
+      if (!this.options.silent) {
+        return this.loadUrl();
+      }
     },
 
     // Add a route to be tested when the fragment changes. Routes added later may

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