[Pkg-javascript-commits] [backbone] 61/74: Adding the IE8-in-IE7-mode hack.

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


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

js pushed a commit to tag 0.3.0
in repository backbone.

commit 3373fa027038cad615ac9e6e98b7a477f8942656
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Mon Nov 8 15:05:38 2010 -0500

    Adding the IE8-in-IE7-mode hack.
---
 backbone.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index a8010f1..0fd22b1 100644
--- a/backbone.js
+++ b/backbone.js
@@ -650,7 +650,8 @@
       if ($.browser.msie && $.browser.version < 8) {
         this.iframe = $('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo('body')[0].contentWindow;
       }
-      if ('onhashchange' in window) {
+      var docMode = document.documentMode;
+      if ('onhashchange' in window && (!docMode || docMode > 7)) {
         $(window).bind('hashchange', this.checkUrl);
       } else {
         setInterval(this.checkUrl, this.interval);

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