Add settings property back to the model class

This commit is contained in:
Raymond Feng 2013-10-04 15:48:39 -07:00
parent 24d87976e8
commit 409d256e47
1 changed files with 2 additions and 0 deletions

View File

@ -149,6 +149,8 @@ ModelBuilder.prototype.define = function defineClass(className, properties, sett
// expose properties on the ModelClass
ModelClass.definition = modelDefinition;
// keep a pointer to settings as models can use it for configuration
ModelClass.settings = modelDefinition.settings;
var idInjection = settings.idInjection;
if(idInjection !== false) {