From 40aee910d78d8122db76368c49b52a533f35b1e4 Mon Sep 17 00:00:00 2001 From: "James B. Pollack" Date: Wed, 30 Dec 2015 20:18:52 -0800 Subject: [PATCH] disconnect --- examples/controllers/handControllerGrab.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/controllers/handControllerGrab.js b/examples/controllers/handControllerGrab.js index ecf5de4128..812e575491 100644 --- a/examples/controllers/handControllerGrab.js +++ b/examples/controllers/handControllerGrab.js @@ -1856,8 +1856,10 @@ function cleanup() { rightController.cleanup(); leftController.cleanup(); Controller.disableMapping(MAPPING_NAME); + if (USE_PARTICLE_BEAM_FOR_SEARCHING === true || USE_PARTICLE_BEAM_FOR_MOVING === true) { + Script.update.disconnect(renewParticleBeamLifetimes); + } } - Script.scriptEnding.connect(cleanup); Script.update.connect(update);