From ff507682ebee275f865dc54ec4015c99c21b24ba Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 27 Mar 2015 10:46:56 +0000 Subject: [PATCH] Replace deprecated console.timelineEnd and console.timeline with console.timeEnd and console.time --- etemplate/js/etemplate2.js | 8 ++++---- phpgwapi/js/jsapi/egw.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/etemplate/js/etemplate2.js b/etemplate/js/etemplate2.js index e376ad2e6d..b11017bff7 100644 --- a/etemplate/js/etemplate2.js +++ b/etemplate/js/etemplate2.js @@ -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) { diff --git a/phpgwapi/js/jsapi/egw.js b/phpgwapi/js/jsapi/egw.js index 41914670a3..ccb1e64a5b 100644 --- a/phpgwapi/js/jsapi/egw.js +++ b/phpgwapi/js/jsapi/egw.js @@ -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');