Settings always set
This commit is contained in:
parent
a90fe8da41
commit
e0b52c6b7e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue