Replace deprecated console.timelineEnd and console.timeline with console.timeEnd and console.time

This commit is contained in:
Hadi Nategh 2015-03-27 10:46:56 +00:00
parent c3eed99cdd
commit ff507682eb
2 changed files with 6 additions and 6 deletions

View File

@ -358,9 +358,9 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
{ {
egw.window.console.groupCollapsed("Loading %s into ", _name, '#'+this.DOMContainer.id); 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) if(console.profile)
{ {
@ -523,9 +523,9 @@ etemplate2.prototype.load = function(_name, _url, _data, _callback)
$j(this.DOMContainer).trigger('load', this); $j(this.DOMContainer).trigger('load', this);
// Profiling // Profiling
if(console.timelineEnd) if(console.timeEnd)
{ {
console.timelineEnd(_name); console.timeEnd(_name);
} }
if(console.profileEnd) if(console.profileEnd)
{ {

View File

@ -41,7 +41,7 @@
var debug = false; var debug = false;
var egw_script = document.getElementById('egw_script_id'); var egw_script = document.getElementById('egw_script_id');
var start_time = (new Date).getTime(); 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) // set opener as early as possible for framework popups (not real popups)
if (!window.opener && window.parent !== window) if (!window.opener && window.parent !== window)
@ -199,7 +199,7 @@
egw.open_link.apply(egw, egw_popup); 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 end_time = (new Date).getTime();
var gen_time_div = $j('#divGenTime_'+window.egw_appName); var gen_time_div = $j('#divGenTime_'+window.egw_appName);
if (!gen_time_div.length) gen_time_div = $j('.pageGenTime'); if (!gen_time_div.length) gen_time_div = $j('.pageGenTime');