Browse Source

Merge branch 'd98762625-init-dish'

n1474335 6 năm trước cách đây
mục cha
commit
aedac94e40
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/core/Dish.mjs

+ 2 - 2
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") &&