From 502a2330abbd73e545b91ab68fe682dc90184172 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Wed, 7 Sep 2016 19:03:14 +0800 Subject: [PATCH] Fix issue in orientationChange callback --- cocos2d/core/platform/CCView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos2d/core/platform/CCView.js b/cocos2d/core/platform/CCView.js index 646b8a3d49..e1d27d35f5 100644 --- a/cocos2d/core/platform/CCView.js +++ b/cocos2d/core/platform/CCView.js @@ -214,9 +214,9 @@ var View = cc._Class.extend({ }, _orientationChange: function () { - this._orientationChanging = true; - this._resizeEvent(); - this._orientationChanging = false; + cc.view._orientationChanging = true; + cc.view._resizeEvent(); + cc.view._orientationChanging = false; }, /**