diff --git a/cocos2d/core/CCNode.js b/cocos2d/core/CCNode.js index 4f8822e434..2e2fec7d4b 100644 --- a/cocos2d/core/CCNode.js +++ b/cocos2d/core/CCNode.js @@ -486,7 +486,6 @@ var Node = cc.Class({ // Retained actions for JSB if (CC_JSB) { - this.__sgNode = null; this._retainedActions = []; } }, diff --git a/jsb/jsb-action.js b/jsb/jsb-action.js index 0bc27b229d..496a0d9fa2 100644 --- a/jsb/jsb-action.js +++ b/jsb/jsb-action.js @@ -112,6 +112,10 @@ for (var i = 0; i < actionArr.length; ++i) { } } +cc.follow = function (followedNode, rect) { + return new cc.Follow(followedNode._sgNode, rect); +}; + // Special call func cc.callFunc = function (selector, selectorTarget, data) { var callback = function (sender, data) {