Skip to content

Commit ce00962

Browse files
committed
minor #13684 Fixes event listener attaching error (bartru)
This PR was merged into the 2.6 branch. Discussion ---------- Fixes event listener attaching error | Q | A | ------------- | --- | Bug fix? | [yes] | New feature? | [no] | BC breaks? | [no] | Deprecations? | [no] | Tests pass? | [yes] | Fixed tickets | [none] | License | MIT | Doc PR | [none] Commits ------- 34b489d Fixes event listener attaching error
2 parents fd0fd31 + 34b489d commit ce00962

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
@@ -173,7 +173,7 @@
173173
174174
var addEventListener;
175175
176-
if (document.addEventListener) {
176+
if (document.attachEvent) {
177177
addEventListener = function (element, eventName, callback) {
178178
element.attachEvent('on' + eventName, callback);
179179
};

0 commit comments

Comments
 (0)