Skip to content

Commit

Permalink
Merge pull request #372 from blikblum/remove-bbevents
Browse files Browse the repository at this point in the history
Remove BackboneEvents from agent build
  • Loading branch information
paulfalgout committed Jun 2, 2018
2 parents fe6deb8 + 9e47cfa commit f732206
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 0 additions & 5 deletions extension/js/agent/build/core.js
Expand Up @@ -7,11 +7,6 @@ if (typeof window._ == "undefined") {
// @include ../../lib/nanodom.js
var nanodom = this.nanodom;

// @include ../../lib/backbone-events-standalone/backbone-events-standalone.js

// define BackboneEvents locally in the agent closure
var BackboneEvents = this.BackboneEvents || window.BackboneEvents;

var Agent = this;

/*
Expand Down
5 changes: 4 additions & 1 deletion extension/js/agent/utils/lazyWorker.js
Expand Up @@ -7,7 +7,7 @@
// this.logSize();
};

_.extend(Agent.LazyWorker.prototype, BackboneEvents, {
_.extend(Agent.LazyWorker.prototype, {

// time to wait until starting work
deferTime: 160,
Expand All @@ -17,6 +17,9 @@

jobId: 0,

// abstract method
trigger: function() {},

push: function(job) {
// console.log('** callee', Agent.stackFrame(8));
// console.log('push called', this.queue.length, new Date() - this.initTime);
Expand Down
1 change: 1 addition & 0 deletions extension/js/test/unit/agent_test_setup.js
Expand Up @@ -50,6 +50,7 @@

window.startAnalytics();
window.Backbone = window.BackboneFactory(window._, window.jQuery || window.$);
Object.assign(window.LazyWorker.prototype, window.Backbone.Events);
window.Marionette = window.MarionetteFactory(Backbone);
window.patchBackbone(Backbone);
window.patchMarionette(Backbone, Marionette);
Expand Down

0 comments on commit f732206

Please sign in to comment.