Skip to content

Commit

Permalink
Fixed issue: in some situations lslog isn't working
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Dec 22, 2017
1 parent da00c75 commit 39dbeee
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 21 deletions.
10 changes: 0 additions & 10 deletions assets/packages/lslog/build/lslog.js
Expand Up @@ -206,16 +206,6 @@ var ConsoleShim = function () {
this.log('--- ERROR ---');
this.log(args);
}
}, {
key: 'err',
value: function err() {
this.error.apply(this, arguments);
}
}, {
key: 'debug',
value: function debug() {
this.trace.apply(this, arguments);
}
}, {
key: 'warn',
value: function warn() {
Expand Down
2 changes: 1 addition & 1 deletion assets/packages/lslog/build/lslog.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions assets/packages/lslog/src/lslog.js
Expand Up @@ -141,12 +141,6 @@ class ConsoleShim {
this.log(args);
}

err() {
this.error.apply(this,arguments);
}
debug() {
this.trace.apply(this,arguments);
}

warn() {
const args = this._insertParamToArguments(arguments);
Expand Down
13 changes: 12 additions & 1 deletion assets/packages/lstutorial/build/lstutorial.js
Expand Up @@ -149,7 +149,18 @@ const TourLibrary = function () {
let _actionActiveTour = null;

if (_activeTour !== false && (typeof _actionActiveTour !== 'function')) {
initTour(_activeTour);
initTour(_activeTour).then(
(startedTutorial) => {
if(startedTutorial.ended())
startedTutorial.restart();
else
startedTutorial.start(true);
},
(err) => {
console.ls.log('Couldn\'t be loaded!');
console.ls.error(err);
}
);
}

return {
Expand Down
2 changes: 1 addition & 1 deletion assets/packages/lstutorial/build/lstutorial.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/packages/lstutorial/build/lstutorial.min.js

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion assets/packages/lstutorial/src/main.js
Expand Up @@ -72,7 +72,18 @@ const TourLibrary = function () {
let _actionActiveTour = null;

if (_activeTour !== false && (typeof _actionActiveTour !== 'function')) {
initTour(_activeTour);
initTour(_activeTour).then(
(startedTutorial) => {
if(startedTutorial.ended())
startedTutorial.restart();
else
startedTutorial.start(true);
},
(err) => {
console.ls.log('Couldn\'t be loaded!');
console.ls.error(err);
}
);
}

return {
Expand Down

0 comments on commit 39dbeee

Please sign in to comment.