不要怂,就是干,撸起袖子干!

Commit 00ba8e6e by Sean Arme

Workaround to deal with an issue in node-webkit where the validate function fail…

…s on object literals, with a comment to help explain why.
1 parent 3d7dca84
Showing with 3 additions and 0 deletions
......@@ -20,6 +20,9 @@ var validateDeprecation = function(value, expectation, options) {
};
var validate = function(value, expectation, options) {
// the second part of this check is a workaround to deal with an issue that occurs in node-webkit when
// using object literals. https://github.com/sequelize/sequelize/issues/2685
if (value instanceof expectation || typeof(value) === typeof(expectation.call())) {
return true;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!