Skip to content

Instantly share code, notes, and snippets.

@MikeRatcliffe
Created May 1, 2013 15:05
Show Gist options
  • Save MikeRatcliffe/5495812 to your computer and use it in GitHub Desktop.
Save MikeRatcliffe/5495812 to your computer and use it in GitHub Desktop.
In toolbox.js:
let Telemetry = require("devtools/shared/telemetry");
And in telemetry.js:
this.Telemetry = function Telemetry() {
this.logOncePerBrowserVersion = this.logOncePerBrowserVersion.bind(this);
this.logEvent = this.logEvent.bind(this);
this.logId = this.logId.bind(this);
this.log = this.log.bind(this);
};
module.exports = Telemetry;
Telemetry.prototype = {
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment