Bug 1296040 - correctly define Telemetry at top level; r?bgrins
MozReview-Commit-ID: AZh5lBvqg3T
--- a/devtools/client/shared/telemetry.js
+++ b/devtools/client/shared/telemetry.js
@@ -37,26 +37,26 @@
* You can view telemetry stats for large groups of Firefox users at
* telemetry.mozilla.org.
*/
"use strict";
const TOOLS_OPENED_PREF = "devtools.telemetry.tools.opened.version";
-this.Telemetry = function () {
+function Telemetry() {
// Bind pretty much all functions so that callers do not need to.
this.toolOpened = this.toolOpened.bind(this);
this.toolClosed = this.toolClosed.bind(this);
this.log = this.log.bind(this);
this.logOncePerBrowserVersion = this.logOncePerBrowserVersion.bind(this);
this.destroy = this.destroy.bind(this);
this._timers = new Map();
-};
+}
module.exports = Telemetry;
var Services = require("Services");
Telemetry.prototype = {
_histograms: {
toolbox: {