Merge pull request #15908 from dumganhar/deprecated-method

cc.Node.ignoreAnchorPointForPostion was deprecated, lua/js script should handle this.
This commit is contained in:
minggo 2016-06-22 13:37:11 +08:00 committed by GitHub
commit 99ea0299c8
2 changed files with 12 additions and 0 deletions

View File

@ -66,6 +66,11 @@ var cc = cc || {};
cc.Node.prototype.setLocalZOrder.apply(this, arguments);
};
cc.Node.prototype.ignoreAnchorPointForPosition = function() {
logW("cc.Node.ignoreAnchorPointForPosition", "cc.Node.setIgnoreAnchorPointForPosition");
cc.Node.prototype.setIgnoreAnchorPointForPosition.apply(this, arguments);
};
cc.Node.prototype.nodeToParentTransform = function() {
logW("cc.Node.nodeToParentTransform", "cc.Node.getNodeToParentTransform");
return cc.Node.prototype.getNodeToParentTransform.apply(this, arguments);

View File

@ -990,6 +990,13 @@ function NodeDeprecated.getVertexZ(self)
return self:getPositionZ()
end
cc.Node.getVertexZ = NodeDeprecated.getVertexZ
function NodeDeprecated.ignoreAnchorPointForPosition(self,ignore)
deprecatedTip("cc.Node:ignoreAnchorPointForPosition", "cc.Node:setIgnoreAnchorPointForPosition")
return self:setIgnoreAnchorPointForPosition(ignore)
end
cc.Node.ignoreAnchorPointForPosition = NodeDeprecated.ignoreAnchorPointForPosition
--functions of cc.Node will be deprecated end
--functions of cc.GLProgram will be deprecated begin