From 66b6d5178fc7ac31dfc98159c486392b7987d15d Mon Sep 17 00:00:00 2001 From: James Pollack Date: Tue, 8 Sep 2015 17:25:39 -0700 Subject: [PATCH] Cleanup wand when createWand.js script ends --- examples/toys/bubblewand/bubble.js | 2 +- examples/toys/bubblewand/createWand.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/toys/bubblewand/bubble.js b/examples/toys/bubblewand/bubble.js index 05b625c124..3cc68fecfa 100644 --- a/examples/toys/bubblewand/bubble.js +++ b/examples/toys/bubblewand/bubble.js @@ -26,7 +26,7 @@ this.collisionWithEntity = function(myID, otherID, collision) { //if(Entites.getEntityProperties(otherID).userData.objectType==='') { merge bubbles?} - Entities.deleteEntity(myID); + // Entities.deleteEntity(myID); // this.burstBubbleSound(collision.contactPoint) }; diff --git a/examples/toys/bubblewand/createWand.js b/examples/toys/bubblewand/createWand.js index d5204c8075..15c347d62a 100644 --- a/examples/toys/bubblewand/createWand.js +++ b/examples/toys/bubblewand/createWand.js @@ -35,7 +35,7 @@ var wand = Entities.addEntity({ }); function cleanup() { - //Entities.deleteEntity(wand); + Entities.deleteEntity(wand); }