[Pkg-javascript-commits] [backbone] 153/211: fixing IE support for 0.5.0
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 f742bbe9478f94355ec12a7f3e13ccf0c75574b1
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date: Thu May 26 13:25:06 2011 -0400
fixing IE support for 0.5.0
---
backbone.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/backbone.js b/backbone.js
index 9873110..570173d 100644
--- a/backbone.js
+++ b/backbone.js
@@ -756,7 +756,7 @@
// Get the cross-browser normalized URL fragment, either from the URL,
// the hash, or the override.
getFragment : function(fragment, forcePushState) {
- if (!fragment) {
+ if (fragment == null) {
if (this._hasPushState || forcePushState) {
fragment = window.location.pathname;
var search = window.location.search;
@@ -820,7 +820,7 @@
// calls `loadUrl`, normalizing across the hidden iframe.
checkUrl : function(e) {
var current = this.getFragment();
- if (current == this.fragment && this.iframe) current = this.getFragment(this.iframe.location);
+ if (current == this.fragment && this.iframe) current = this.getFragment(this.iframe.location.hash);
if (current == this.fragment || current == decodeURIComponent(this.fragment)) return false;
if (this.iframe) this.saveLocation(current);
this.loadUrl() || this.loadUrl(window.location.hash);
--
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