fix fireball/issues/7369 (#2741)

This commit is contained in:
Knox
2018-05-27 23:00:25 +08:00
committed by pandamicro
parent 2b35813c26
commit 9029fe0447
+1 -1
View File
@@ -201,7 +201,7 @@ Audio.State = {
};
proto.resume = function () {
if (!this._element || this._element.currentTime === 0) return;
if (!this._element || this._state === Audio.State.PLAYING) return;
this._bindEnded();
this._element.play();
this.emit('resume');