From 0a223adf7cbd8f11ce17264db3d382d902361988 Mon Sep 17 00:00:00 2001 From: VisualSJ Date: Wed, 17 Jun 2015 14:43:41 +0800 Subject: [PATCH] After exiting should restore settings --- tests/js-tests/src/SchedulerTest/SchedulerTest.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/js-tests/src/SchedulerTest/SchedulerTest.js b/tests/js-tests/src/SchedulerTest/SchedulerTest.js index d7cbf1618e..0519d8e2c9 100644 --- a/tests/js-tests/src/SchedulerTest/SchedulerTest.js +++ b/tests/js-tests/src/SchedulerTest/SchedulerTest.js @@ -644,6 +644,7 @@ var SchedulerTimeScale = SchedulerTestLayer.extend({ }, onExit: function() { + cc.director.getScheduler().setTimeScale(1); // restore scale cc.director.getScheduler().unscheduleUpdateForTarget(this._newScheduler); this._super();