Bug 1010568: Remove usage of 2nd WeakMap#get parameter from TelemetryStopwatch; r=felipe

--HG--
extra : amend_source : a825f25e18b52f46a2ddd50383aa2783f431d7df
This commit is contained in:
Arpad Borsos 2014-05-15 15:58:05 +02:00
parent 52640a26cf
commit 4ff1a98038

View File

@ -41,7 +41,7 @@ this.TelemetryStopwatch = {
let timers;
if (aObj) {
timers = objectTimers.get(aObj, {});
timers = objectTimers.get(aObj) || {};
objectTimers.set(aObj, timers);
} else {
timers = simpleTimers;
@ -79,7 +79,7 @@ this.TelemetryStopwatch = {
return false;
let timers = aObj
? objectTimers.get(aObj, {})
? objectTimers.get(aObj) || {}
: simpleTimers;
if (timers.hasOwnProperty(aHistogram)) {
@ -110,7 +110,7 @@ this.TelemetryStopwatch = {
return false;
let timers = aObj
? objectTimers.get(aObj, {})
? objectTimers.get(aObj) || {}
: simpleTimers;
let start = timers[aHistogram];