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

Commit 8202c4d

Browse files
mgolIgorMinar
authored andcommitted
chore(Angular): drop support for Opera < 15
Closes #8589
1 parent 2c8b464 commit 8202c4d

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

src/ng/browser.js

-2
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,6 @@ function Browser(window, document, $log, $sniffer) {
158158
if (replace) history.replaceState(null, '', url);
159159
else {
160160
history.pushState(null, '', url);
161-
// Crazy Opera Bug: http://my.opera.com/community/forums/topic.dml?id=1185462
162-
baseElement.attr('href', baseElement.attr('href'));
163161
}
164162
} else {
165163
newLocation = url;

src/ng/directive/select.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -658,11 +658,7 @@ var optionDirective = ['$interpolate', function($interpolate) {
658658
selectCtrl = parent.data(selectCtrlName) ||
659659
parent.parent().data(selectCtrlName); // in case we are in optgroup
660660

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

test/ng/snifferSpec.js

-3
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,6 @@ describe('$sniffer', function() {
107107
else if(/ie/i.test(ua) || /trident/i.test(ua)) {
108108
expectedPrefix = 'Ms';
109109
}
110-
else if(/opera/i.test(ua)) {
111-
expectedPrefix = 'O';
112-
}
113110
expect($sniffer.vendorPrefix).toBe(expectedPrefix);
114111
});
115112
});

0 commit comments

Comments
 (0)