File tree 1 file changed +5
-4
lines changed
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 419
419
function (xhr , el ) {
420
420
421
421
/* Evaluate in global scope scripts embedded inside the toolbar */
422
- eval .call ({}, ([].slice .call (el .querySelectorAll (' script' )).map (function (script ) {
423
- return script .firstChild .nodeValue ;
424
- }).join (' ;\n ' )));
422
+ var i, scripts = [].slice .call (el .querySelectorAll (' script' ));
423
+ for (i = 0 ; i < scripts .length ; ++ i) {
424
+ eval .call ({}, scripts[i].firstChild .nodeValue );
425
+ }
425
426
426
427
el .style .display = - 1 !== xhr .responseText .indexOf (' sf-toolbarreset' ) ? ' block' : ' none' ;
427
428
440
441
}
441
442
442
443
/* Handle toolbar-info position */
443
- var i, toolbarBlocks = [].slice .call (el .querySelectorAll (' .sf-toolbar-block' ));
444
+ var toolbarBlocks = [].slice .call (el .querySelectorAll (' .sf-toolbar-block' ));
444
445
for (i = 0 ; i < toolbarBlocks .length ; ++ i) {
445
446
toolbarBlocks[i].onmouseover = function () {
446
447
var toolbarInfo = this .querySelectorAll (' .sf-toolbar-info' )[0 ];
You can’t perform that action at this time.
0 commit comments