[Pkg-javascript-commits] [backbone] 03/09: Remove !current check from checkUrl to allow loading of empty fragments.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:59:18 UTC 2014


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

js pushed a commit to tag 0.3.1
in repository backbone.

commit 2541654889634a48ff26947db9e22971ee5db219
Author: Niels Sandholt Busch <niels.busch at gmail.com>
Date:   Thu Nov 11 14:09:48 2010 -0800

    Remove !current check from checkUrl to allow loading of empty fragments.
---
 backbone.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/backbone.js b/backbone.js
index e0db984..17d3298 100644
--- a/backbone.js
+++ b/backbone.js
@@ -687,8 +687,7 @@
       if (current == this.fragment && this.iframe) {
         current = this.getFragment(this.iframe.location);
       }
-      if (!current ||
-          current == this.fragment ||
+      if (current == this.fragment ||
           current == decodeURIComponent(this.fragment)) return false;
       if (this.iframe) {
         window.location.hash = this.iframe.location.hash = current;

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