Skip to content

Commit

Permalink
trim spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
moloko committed Jul 12, 2018
1 parent 9faae64 commit d34e7f3
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 84 deletions.
6 changes: 3 additions & 3 deletions js/adapt-contrib-spoor.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ define([
scorm.initialize();

/*
force offlineStorage-scorm to initialise suspendDataStore - this allows us to do things like store the user's
chosen language before the rest of the course data loads
force offlineStorage-scorm to initialise suspendDataStore - this allows us to do things like store the user's
chosen language before the rest of the course data loads
*/
Adapt.offlineStorage.get();

Expand Down Expand Up @@ -132,7 +132,7 @@ define([
scorm.finish();
}
}

}, Backbone.Events);

Spoor.initialize();
Expand Down
10 changes: 5 additions & 5 deletions js/adapt-offlineStorage-scorm.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ define([
});

suspendDataRestored = true;

return data;
}

Expand Down Expand Up @@ -90,7 +90,7 @@ define([
scorm.setLanguage(value);
// fall-through so that lang gets stored in suspend_data as well:
// because in SCORM 1.2 cmi.student_preference.language is an optional data element
// so we can't rely on the LMS having support for it.
// so we can't rely on the LMS having support for it.
// If it does support it we may as well save the user's choice there purely for reporting purposes
case "suspenddata":
default:
Expand Down Expand Up @@ -121,10 +121,10 @@ define([
var dataAsJSON = this.getCustomStates();
return dataAsJSON[name];
},

useTemporaryStore: function() {
var cfg = Adapt.config.get('_spoor');

if (!scorm.lmsConnected || (cfg && cfg._isEnabled === false)) return true;
return false;
},
Expand Down Expand Up @@ -155,7 +155,7 @@ define([
id: scorm.getStudentId()
};
}

});

});
Loading

0 comments on commit d34e7f3

Please sign in to comment.