diff --git a/lib/schema.js b/lib/schema.js index 6696cf45..681d873f 100644 --- a/lib/schema.js +++ b/lib/schema.js @@ -158,6 +158,8 @@ Schema.prototype.define = function defineClass(className, properties, settings) if (args.length == 1) properties = {}, args.push(properties); if (args.length == 2) settings = {}, args.push(settings); + settings = settings || {}; + standartize(properties, settings); // every class can receive hash of data as optional param