mirror of https://github.com/axmolengine/axmol.git
Merge pull request #15908 from dumganhar/deprecated-method
cc.Node.ignoreAnchorPointForPostion was deprecated, lua/js script should handle this.
This commit is contained in:
commit
99ea0299c8
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue