Skip to content

Commit

Permalink
Fixed mode 'both'
Browse files Browse the repository at this point in the history
  • Loading branch information
pierremtb committed May 19, 2016
1 parent 95ce9cc commit b758427
Show file tree
Hide file tree
Showing 4 changed files with 42,164 additions and 42,162 deletions.
5 changes: 3 additions & 2 deletions dist/easy-fit.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,11 @@ var EasyFit = function () {
}
}

if (isModeCascade) {
if (isCascadeNeeded) {
fitObj.activity.sessions = sessions;
fitObj.activity.events = events;
} else {
}
if (!isModeCascade) {
fitObj.sessions = sessions;
fitObj.laps = laps;
fitObj.records = records;
Expand Down
6 changes: 3 additions & 3 deletions examples/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ fs.readFile(file, function (err, content) {
var easyFit = new EasyFit({
force: true,
speedUnit: 'km/h',
lengthUnit: 'km',
temperatureUnit: 'kelvin',
lengthUnit: 'm',
temperatureUnit: 'celsius',
elapsedRecordField: true,
mode: 'cascade',
mode: 'list',
});

easyFit.parse(content, function (error, data) {
Expand Down
Loading

0 comments on commit b758427

Please sign in to comment.