mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Replace deprecated console.timelineEnd and console.timeline with console.timeEnd and console.time
This commit is contained in:
parent
c3eed99cdd
commit
ff507682eb
@ -358,9 +358,9 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
|
||||
{
|
||||
egw.window.console.groupCollapsed("Loading %s into ", _name, '#'+this.DOMContainer.id);
|
||||
}
|
||||
if(console.timeline)
|
||||
if(console.time)
|
||||
{
|
||||
console.timeline(_name);
|
||||
console.time(_name);
|
||||
}
|
||||
if(console.profile)
|
||||
{
|
||||
@ -523,9 +523,9 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
|
||||
$j(this.DOMContainer).trigger('load', this);
|
||||
|
||||
// Profiling
|
||||
if(console.timelineEnd)
|
||||
if(console.timeEnd)
|
||||
{
|
||||
console.timelineEnd(_name);
|
||||
console.timeEnd(_name);
|
||||
}
|
||||
if(console.profileEnd)
|
||||
{
|
||||
|
@ -41,7 +41,7 @@
|
||||
var debug = false;
|
||||
var egw_script = document.getElementById('egw_script_id');
|
||||
var start_time = (new Date).getTime();
|
||||
if(typeof console != "undefined" && console.timeline) console.timeline("egw");
|
||||
if(typeof console != "undefined" && console.time) console.time("egw");
|
||||
|
||||
// set opener as early as possible for framework popups (not real popups)
|
||||
if (!window.opener && window.parent !== window)
|
||||
@ -199,7 +199,7 @@
|
||||
egw.open_link.apply(egw, egw_popup);
|
||||
}
|
||||
|
||||
if(typeof console != "undefined" && console.timelineEnd) console.timelineEnd("egw");
|
||||
if(typeof console != "undefined" && console.timeEnd) console.timeEnd("egw");
|
||||
var end_time = (new Date).getTime();
|
||||
var gen_time_div = $j('#divGenTime_'+window.egw_appName);
|
||||
if (!gen_time_div.length) gen_time_div = $j('.pageGenTime');
|
||||
|
Loading…
Reference in New Issue
Block a user