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

chore(Angular): drop support for Opera < 15 #8589

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/ng/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ function Browser(window, document, $log, $sniffer) {
if (replace) history.replaceState(null, '', url);
else {
history.pushState(null, '', url);
// Crazy Opera Bug: http://my.opera.com/community/forums/topic.dml?id=1185462
baseElement.attr('href', baseElement.attr('href'));
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This URL doesn't work any more. ;)

} else {
newLocation = url;
Expand Down
6 changes: 1 addition & 5 deletions src/ng/directive/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -633,11 +633,7 @@ var optionDirective = ['$interpolate', function($interpolate) {
selectCtrl = parent.data(selectCtrlName) ||
parent.parent().data(selectCtrlName); // in case we are in optgroup

if (selectCtrl && selectCtrl.databound) {
// For some reason Opera defaults to true and if not overridden this messes up the repeater.
// We don't want the view to drive the initialization of the model anyway.
element.prop('selected', false);
} else {
if (!selectCtrl || !selectCtrl.databound) {
selectCtrl = nullSelectCtrl;
}

Expand Down
3 changes: 0 additions & 3 deletions test/ng/snifferSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ describe('$sniffer', function() {
else if(/ie/i.test(ua) || /trident/i.test(ua)) {
expectedPrefix = 'Ms';
}
else if(/opera/i.test(ua)) {
expectedPrefix = 'O';
}
expect($sniffer.vendorPrefix).toBe(expectedPrefix);
});
});
Expand Down