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:
pandamicro
2016-06-24 17:24:17 +08:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
-1
View File
@@ -486,7 +486,6 @@ var Node = cc.Class({
// Retained actions for JSB
if (CC_JSB) {
this.__sgNode = null;
this._retainedActions = [];
}
},
+4
View File
@@ -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) {