change empty Dish initialisation to use ArrayBuffer

This commit is contained in:
d98762625 2019-04-08 17:58:46 +01:00
parent 786e50c3c3
commit cdc15c0f20
1 changed files with 2 additions and 2 deletions

View File

@ -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") &&