1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-26 14:34:27 +02:00

Fixing lousy comparison

#51
This commit is contained in:
Antonio Laguna
2017-04-19 10:29:32 +02:00
parent b78b791865
commit 05379d1783

View File

@@ -51,7 +51,10 @@ export default class AutoSlide {
* automatically.
*/
play(time) {
time = time || this.time;
if (typeof time !== 'number') {
time = this.time;
}
this.time = time;
if (!this.interval_ && typeof time === 'number' && time > 0) {