Merge pull request #1218 from 2youyou2/animation-callback

fixed animation callback
This commit is contained in:
Wang Nan
2016-10-19 17:33:01 +08:00
committed by GitHub
+8 -4
View File
@@ -108,8 +108,10 @@ prototype.stop = function () {
* @method pause
*/
prototype.pause = function () {
this._isPaused = true;
this.onPause();
if (this._isPlaying) {
this._isPaused = true;
this.onPause();
}
};
/**
@@ -118,8 +120,10 @@ prototype.pause = function () {
* @method resume
*/
prototype.resume = function () {
this._isPaused = false;
this.onResume();
if (this._isPlaying) {
this._isPaused = false;
this.onResume();
}
};
/**