From 79e6d4a033d8503e1118b7617b35f879b7223798 Mon Sep 17 00:00:00 2001 From: fusijie Date: Mon, 12 Mar 2018 18:14:22 +0800 Subject: [PATCH] rename private handler. --- cocos2d/core/CCPrivateNode.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos2d/core/CCPrivateNode.js b/cocos2d/core/CCPrivateNode.js index 2849975097..c3fc79b2ad 100644 --- a/cocos2d/core/CCPrivateNode.js +++ b/cocos2d/core/CCPrivateNode.js @@ -55,7 +55,7 @@ let PrivateNode = cc.Class({ this.zIndex = cc.macro.MIN_ZINDEX; }, - _anchorChangedHandler () { + _onAnchorChangedHandler () { this._localMatDirty = true; }, @@ -93,10 +93,10 @@ let PrivateNode = cc.Class({ this._super(value); if (oldParent !== value) { if (oldParent) { - oldParent.off(ANCHOR_CHANGED, this._anchorChangedHandler, this); + oldParent.off(ANCHOR_CHANGED, this._onAnchorChangedHandler, this); } if (value) { - value.on(ANCHOR_CHANGED, this._anchorChangedHandler, this); + value.on(ANCHOR_CHANGED, this._onAnchorChangedHandler, this); } } },