mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 18:42:40 +08:00
Merge pull request #828 from knoxHuang/v1.1
fix JSB cc.follow error and fix JSB hint sgNode is null error
This commit is contained in:
@@ -486,7 +486,6 @@ var Node = cc.Class({
|
||||
|
||||
// Retained actions for JSB
|
||||
if (CC_JSB) {
|
||||
this.__sgNode = null;
|
||||
this._retainedActions = [];
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user