Lutz Roeder 4 lat temu
rodzic
commit
838dde992b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      source/mnn.js

+ 1 - 1
source/mnn.js

@@ -292,7 +292,7 @@ mnn.Attribute = class {
         this._type = null;
         this._type = null;
         this._value = ArrayBuffer.isView(value) ? Array.from(value) : value;
         this._value = ArrayBuffer.isView(value) ? Array.from(value) : value;
         this._name = name;
         this._name = name;
-        this._visible = visible;
+        this._visible = visible ? true : false;
         if (schema) {
         if (schema) {
             if (schema.type) {
             if (schema.type) {
                 this._type = schema.type;
                 this._type = schema.type;