Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ab755a2

Browse files
committed
fix(Scenario): correct bootstrap issue on IE
we need to set the deferred bootstrap flag via window.name after the iframe's src has been set, otherwise IE will reset it to empty string
1 parent b7b08ee commit ab755a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ngScenario/Application.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ angular.scenario.Application.prototype.navigateTo = function(url, loadFn, errorF
6363
self.context.find('#test-frames').append('<iframe>');
6464
frame = self.getFrame_();
6565

66-
frame[0].contentWindow.name = "NG_DEFER_BOOTSTRAP!";
67-
6866
frame.load(function() {
6967
frame.unbind();
7068
try {
@@ -88,6 +86,9 @@ angular.scenario.Application.prototype.navigateTo = function(url, loadFn, errorF
8886
errorFn(e);
8987
}
9088
}).attr('src', url);
89+
90+
// for IE compatibility set the name *after* setting the frame url
91+
frame[0].contentWindow.name = "NG_DEFER_BOOTSTRAP!";
9192
}
9293
self.context.find('> h2 a').attr('href', url).text(url);
9394
};

0 commit comments

Comments
 (0)