Spaces:
Running
Running
wasm : fix typo in helper.js (#459)
Browse files- examples/helpers.js +1 -1
examples/helpers.js
CHANGED
|
@@ -8,7 +8,7 @@ function convertTypedArray(src, type) {
|
|
| 8 |
|
| 9 |
var printTextarea = (function() {
|
| 10 |
var element = document.getElementById('output');
|
| 11 |
-
if (element) element.
|
| 12 |
return function(text) {
|
| 13 |
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
|
| 14 |
console.log(text);
|
|
|
|
| 8 |
|
| 9 |
var printTextarea = (function() {
|
| 10 |
var element = document.getElementById('output');
|
| 11 |
+
if (element) element.value = ''; // clear browser cache
|
| 12 |
return function(text) {
|
| 13 |
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
|
| 14 |
console.log(text);
|