Commits

Matthew Schinckel committed cefdde9

Set validationMessage to an empty Array of value.errors() is falsy

Comments (0)

Files changed (1)

src/knockout.validators.js

           }
         };
         value.errors.subscribe(validationMessage);
-        validationMessage(value.errors());
+        validationMessage(value.errors() || []);
       }
     };