Skip to content

Commit 5379544

Browse files
committed
getParentToNodeTransform should return a value
The "return" keyword is missing from this function.
1 parent ed478e5 commit 5379544

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cocos2d/core/base-nodes/CCNode.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
18881888
* @return {cc.AffineTransform}
18891889
*/
18901890
getParentToNodeTransform: function () {
1891-
this._renderCmd.getParentToNodeTransform();
1891+
return this._renderCmd.getParentToNodeTransform();
18921892
},
18931893

18941894
/**
@@ -2574,4 +2574,4 @@ cc.Node._stateCallbackType = {onEnter: 1, onExit: 2, cleanup: 3, onEnterTransiti
25742574

25752575
cc.assert(cc.isFunction(cc._tmp.PrototypeCCNode), cc._LogInfos.MissingFile, "BaseNodesPropertyDefine.js");
25762576
cc._tmp.PrototypeCCNode();
2577-
delete cc._tmp.PrototypeCCNode;
2577+
delete cc._tmp.PrototypeCCNode;

0 commit comments

Comments
 (0)