8000 bug #19038 Fix feature detection for IE (Alsciende) · symfony/symfony@7438617 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7438617

Browse files
committed
bug #19038 Fix feature detection for IE (Alsciende)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #19038). Discussion ---------- Fix feature detection for IE | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | operator `!` has higher precedence (4) than operator `in` (8). Parentheses are mandatory here to have a chance at passing the test. Commits ------- b35658b Fix feature detection for IE
2 parents ad1ffc5 + b35658b commit 7438617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
var addEventListener;
210210
211211
var el = document.createElement('div');
212-
if (!'addEventListener' in el) {
212+
if (!('addEventListener' in el)) {
213213
addEventListener = function (element, eventName, callback) {
214214
element.attachEvent('on' + eventName, callback);
215215
};

0 commit comments

Comments
 (0)
0