Browse files

about:blank for the IE hashchange iframe support, for IE 6.

  • Loading branch information...
1 parent a969d67 commit 94c77e84f47491b7dd59822364c5ce2ebabc81d2 @jashkenas committed Nov 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 backbone.js
View
2 backbone.js
@@ -679,7 +679,7 @@
var docMode = document.documentMode;
var oldIE = ($.browser.msie && (!docMode || docMode <= 7));
if (oldIE) {
- this.iframe = $('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo('body')[0].contentWindow;
+ this.iframe = $('<iframe src="about:blank" tabindex="-1" />').hide().appendTo('body')[0].contentWindow;
}
if ('onhashchange' in window && !oldIE) {
$(window).bind('hashchange', this.checkUrl);

0 comments on commit 94c77e8

Please sign in to comment.