Browse Source

add convenience `.disconnectAndClear` function for experimenting.

Lucas Stadler 12 years ago
parent
commit
32d2773600
1 changed files with 6 additions and 0 deletions
  1. 6 0
      js/pixl/public/index.html

+ 6 - 0
js/pixl/public/index.html

210
		};
210
		};
211
211
212
		pixl.connect();
212
		pixl.connect();
213
214
        pixl.disconnectAndClear = function() {
215
            pixl.disconnect();
216
            pixl.world = {};
217
            pixl.redraw();
218
        }
213
	</script>
219
	</script>
214
</body>
220
</body>
215
</html>
221
</html>