[Pkg-javascript-commits] [backbone] 08/15: docMode does not exist in IE < 8

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


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

js pushed a commit to tag 0.3.2
in repository backbone.

commit d574c9f732b3a12df8c36652f822c4928e9c4fb7
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Mon Nov 22 12:47:21 2010 -0500

    docMode does not exist in IE < 8
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index 188fd74..bf9439b 100644
--- a/backbone.js
+++ b/backbone.js
@@ -675,7 +675,7 @@
     // an existing route, and `false` otherwise.
     start : function() {
       var docMode = document.documentMode;
-      var oldIE = ($.browser.msie && docMode <= 7);
+      var oldIE = ($.browser.msie && (!docMode || docMode <= 7));
       if (oldIE) {
         this.iframe = $('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo('body')[0].contentWindow;
       }

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