diff --git a/cocos2d/core/components/CCComponent.js b/cocos2d/core/components/CCComponent.js index 7882750f55..eca392761a 100644 --- a/cocos2d/core/components/CCComponent.js +++ b/cocos2d/core/components/CCComponent.js @@ -567,7 +567,7 @@ var Component = cc.Class({ // because enabledInHierarchy is assigned after onEnable. // Actually, if not yet scheduled, resumeTarget/pauseTarget has no effect on component, // therefore there is no way to guarantee the paused state other than isTargetPaused. - var paused = scheduler.isTargetPaused(); + var paused = scheduler.isTargetPaused(this); scheduler.schedule(callback, this, interval, repeat, delay, paused); }, diff --git a/package.json b/package.json index 7b9ece30df..8f74448c04 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cocos-creator-js", - "version": "1.6.0", + "version": "1.7.0", "description": "Cocos2d-html5 is a cross-platform 2D game engine written in Javascript, based on Cocos2d-X and licensed under MIT. It incorporates the same high level api as “Cocos2d JS-binding engine” and compatible with Cocos2d-X. It currently supports canvas and WebGL renderering.", "homepage": "http://www.cocos2d-x.org", "authors": [