File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/Symfony/Bundle/WebProfilerBundle/Resources/views Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 281
281
}
282
282
283
283
// attach listener for expanding/collapsing the target
284
- Sfjs .addEvent (buttons[i], ' click' , function (e ) {
284
+ Sfjs .addEventListener (buttons[i], ' click' , function (e ) {
285
285
toggle (this );
286
286
287
287
e .preventDefault ();
380
380
throw " Tab target " + targetId + " does not exist" ;
381
381
}
382
382
383
- tabs[i]. addEventListener ( ' click' , function (e ) {
383
+ Sfjs . addEventListener ( tabs[i], ' click' , function (e ) {
384
384
select (this );
385
385
386
386
e .preventDefault ();
Original file line number Diff line number Diff line change 67
67
localStorage .setItem (profilerStorageKey + name, value);
68
68
},
69
69
70
- addEvent = function (element , eventName , callback ) {
70
+ addEventListener = function (element , eventName , callback ) {
71
71
if (document .all ) {
72
72
element .attachEvent (' on' + eventName, callback);
73
73
} else {
197
197
198
198
requestStack .push (stackElement);
199
199
200
- addEvent (this , ' readystatechange' , function () {
200
+ addEventListener (this , ' readystatechange' , function () {
201
201
if (self .readyState == 4 ) {
202
202
stackElement .duration = new Date () - stackElement .start ;
203
203
stackElement .loading = false ;
227
227
228
228
setPreference: setPreference,
229
229
230
- addEvent : addEvent ,
230
+ addEventListener : addEventListener ,
231
231
232
232
request: request,
233
233
You can’t perform that action at this time.
0 commit comments