From cdc15c0f20070b1c3207ce3bbee7dc0bd560b27e Mon Sep 17 00:00:00 2001 From: d98762625 Date: Mon, 8 Apr 2019 17:58:46 +0100 Subject: [PATCH] change empty Dish initialisation to use ArrayBuffer --- src/core/Dish.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Dish.mjs b/src/core/Dish.mjs index 38247381..96aea716 100755 --- a/src/core/Dish.mjs +++ b/src/core/Dish.mjs @@ -21,8 +21,8 @@ class Dish { * @param {Dish} [dish=null] - A dish to clone */ constructor(dish=null) { - this.value = []; - this.type = Dish.BYTE_ARRAY; + this.value = new ArrayBuffer(0); + this.type = Dish.ARRAY_BUFFER; if (dish && dish.hasOwnProperty("value") &&