From cf5f3c321c046222a38ef362c33041e8a0471dc0 Mon Sep 17 00:00:00 2001 From: jianglong0156 Date: Thu, 21 May 2015 18:10:00 +0800 Subject: [PATCH] fix invalid native object error --- tests/js-tests/src/GUITest/UISceneManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/js-tests/src/GUITest/UISceneManager.js b/tests/js-tests/src/GUITest/UISceneManager.js index 6275cc61a9..d67bdac67c 100644 --- a/tests/js-tests/src/GUITest/UISceneManager.js +++ b/tests/js-tests/src/GUITest/UISceneManager.js @@ -551,7 +551,7 @@ global.GUITestScene = cc.Class.extend({ runThisTest: function(){ - if(guiTestScene === null) + if(guiTestScene === null || !cc.sys.isObjectValid(guiTestScene)) guiTestScene = new listScene; cc.director.runScene(guiTestScene); }