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

Commit

Permalink
fix(Scenario): correct bootstrap issue on IE
Browse files Browse the repository at this point in the history
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
  • Loading branch information
IgorMinar committed Apr 13, 2013
1 parent b7b08ee commit ab755a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ngScenario/Application.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ angular.scenario.Application.prototype.navigateTo = function(url, loadFn, errorF
self.context.find('#test-frames').append('<iframe>');
frame = self.getFrame_();

frame[0].contentWindow.name = "NG_DEFER_BOOTSTRAP!";

frame.load(function() {
frame.unbind();
try {
Expand All @@ -88,6 +86,9 @@ angular.scenario.Application.prototype.navigateTo = function(url, loadFn, errorF
errorFn(e);
}
}).attr('src', url);

// for IE compatibility set the name *after* setting the frame url
frame[0].contentWindow.name = "NG_DEFER_BOOTSTRAP!";
}
self.context.find('> h2 a').attr('href', url).text(url);
};
Expand Down

0 comments on commit ab755a2

Please sign in to comment.