From 9ebe66b4a23733a468b4bbacb9ee1387201a8d75 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Tue, 9 Nov 2010 11:00:50 -0500 Subject: [PATCH] slight refactor to old-IE detection. --- backbone.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backbone.js b/backbone.js index a16b6494..cf8239aa 100644 --- a/backbone.js +++ b/backbone.js @@ -664,11 +664,12 @@ // Start the hash change handling, returning true if the current URL matches // an existing route, and false otherwise. start : function() { - if ($.browser.msie && $.browser.version < 8) { + var docMode = document.documentMode; + var oldIE = ($.browser.msie && docMode < 7); + if (oldIE) { this.iframe = $('