Merge branch 'v1.9' of github.com:cocos-creator/engine into v1.9

This commit is contained in:
knox
2018-03-19 14:20:32 +08:00
+11 -3
View File
@@ -199,9 +199,17 @@ Audio.State = {
proto.stop = function () {
if (!this._element) return;
try {
this._element.currentTime = 0;
} catch (error) {}
if (CC_WECHATGAME) {
setTimeout(function () {
try {
this._element.currentTime = 0;
} catch (error) {}
}.bind(this), 0);
} else {
try {
this._element.currentTime = 0;
} catch (error) {}
}
this._element.pause();
// remove touchPlayList
for (var i=0; i<touchPlayList.length; i++) {