Merge pull request #1593 from webvariants/master

fix typo "PeristedModel"
This commit is contained in:
Miroslav Bajtoš 2015-08-31 18:14:53 +02:00
commit 5726868d87
1 changed files with 2 additions and 2 deletions

View File

@ -109,8 +109,8 @@ Registry.prototype.createModel = function(name, properties, options) {
if (BaseModel === undefined) { if (BaseModel === undefined) {
if (baseName === 'DataModel') { if (baseName === 'DataModel') {
console.warn('Model `%s` is extending deprecated `DataModel. ' + console.warn('Model `%s` is extending deprecated `DataModel. ' +
'Use `PeristedModel` instead.', name); 'Use `PersistedModel` instead.', name);
BaseModel = this.getModel('PeristedModel'); BaseModel = this.getModel('PersistedModel');
} else { } else {
console.warn('Model `%s` is extending an unknown model `%s`. ' + console.warn('Model `%s` is extending an unknown model `%s`. ' +
'Using `PersistedModel` as the base.', name, baseName); 'Using `PersistedModel` as the base.', name, baseName);