Settings always set

This commit is contained in:
Anatoliy Chakkaev 2013-03-23 22:49:34 +04:00
parent a90fe8da41
commit e0b52c6b7e
1 changed files with 2 additions and 0 deletions

View File

@ -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