diff --git a/cocos2d/animation/animation-animator.js b/cocos2d/animation/animation-animator.js index 74a99979b4..a2489497ed 100644 --- a/cocos2d/animation/animation-animator.js +++ b/cocos2d/animation/animation-animator.js @@ -324,7 +324,7 @@ function initClipData (root, state) { if (i === 1) { lastRatioDif = currRatioDif; } - else if (Math.abs(currRatioDif - lastRatioDif) > Math.EPSILON) { + else if (Math.abs(currRatioDif - lastRatioDif) > EPSILON) { canOptimize = false; break; } diff --git a/cocos2d/animation/playable.js b/cocos2d/animation/playable.js index 6e62a183a3..648e8680a3 100644 --- a/cocos2d/animation/playable.js +++ b/cocos2d/animation/playable.js @@ -110,7 +110,7 @@ prototype.stop = function () { * @method pause */ prototype.pause = function () { - if (this._isPlaying) { + if (this._isPlaying && !this._isPaused) { this._isPaused = true; this.onPause(); }