mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-24 14:27:56 -05:00
Simple refactoring
This commit is contained in:
11
backbone.js
11
backbone.js
@@ -758,11 +758,12 @@
|
||||
var docMode = document.documentMode;
|
||||
var oldIE = (isExplorer.exec(navigator.userAgent.toLowerCase()) && (!docMode || docMode <= 7));
|
||||
if (oldIE) {
|
||||
var history = this;
|
||||
var src = 'javascript:document.open();document.domain="' + document.domain + '";document.close();';
|
||||
var frame = $('<iframe></iframe>').attr('src', src).hide().bind('load', function() {
|
||||
history.frame = frame.contentWindow;
|
||||
}).appendTo('body');
|
||||
$('<iframe></iframe')
|
||||
.attr('src', 'javascript:document.open();document.domain="' + document.domain + '";document.close();')
|
||||
.bind('load', $.proxy(function(e) {
|
||||
this.iframe = e.target.contentWindow;
|
||||
}, this))
|
||||
.hide().appendTo('body');
|
||||
|
||||
this.navigate(fragment);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user