[Pkg-javascript-commits] [backbone] 154/211: normalizing for the Safari window.location bug.

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


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

js pushed a commit to tag 0.5.0
in repository backbone.

commit e56346c7aec83bdacf8900c59663aec9411b0006
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Thu May 26 13:30:29 2011 -0400

    normalizing for the Safari window.location bug.
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index 570173d..5cef2ce 100644
--- a/backbone.js
+++ b/backbone.js
@@ -845,7 +845,7 @@
     // a `hashchange` event.
     saveLocation : function(fragment) {
       fragment = (fragment || '').replace(hashStrip, '');
-      if (this.fragment == fragment) return;
+      if (this.fragment == fragment || this.fragment == decodeURIComponent(fragment)) return;
       if (this._hasPushState) {
         var loc = window.location;
         if (fragment.indexOf(this.options.root) != 0) fragment = this.options.root + fragment;

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