Lutz Roeder преди 4 години
родител
ревизия
838dde992b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      source/mnn.js

+ 1 - 1
source/mnn.js

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