fixed animation callback

This commit is contained in:
2youyouo2
2016-10-19 14:45:14 +08:00
parent 6499bc4f50
commit e3ceb982aa
+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();
}
};
/**