Skip to content

Commit

Permalink
Merge pull request #54 from /issues/53
Browse files Browse the repository at this point in the history
 Fixes #53 - js error if _spoor is not set in config.json (3 core +1s as required)
  • Loading branch information
dennis-learningpool committed Feb 2, 2015
2 parents de5e95b + fa8e5ea commit 3e2e928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/adapt-contrib-spoor.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ define(function(require) {

initialize: function() {
this.data = Adapt.config.get('_spoor');
if (this.data._isEnabled === false) return;
if (!this.data || this.data._isEnabled === false) return;
this.SCOStart() ;
$(window).unload(_.bind(this.SCOFinish, this));
this.onDataReady();
Expand Down Expand Up @@ -138,4 +138,4 @@ define(function(require) {
Adapt.on('app:dataReady', function() {
new Spoor();
});
});
});

0 comments on commit 3e2e928

Please sign in to comment.