Explorar el Código

add convenience `.disconnectAndClear` function for experimenting.

Lucas Stadler %!s(int64=12) %!d(string=hace) años
padre
commit
32d2773600
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      js/pixl/public/index.html

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

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