Skip to content

Commit

Permalink
Fixes #53 - js error if _spoor is not set in config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-learningpool committed Jan 30, 2015
1 parent de5e95b commit fa8e5ea
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 fa8e5ea

Please sign in to comment.