fixed simpleviews try loading undefiend when no data-views

This commit is contained in:
Felipe Martín 2015-06-25 21:06:39 +02:00
parent 3d10603328
commit d0aa64e300
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@
};
SimpleViews.prototype.loadView = function(identifier) {
if (!identifier) return;
if (typeof(this.views[identifier]) === 'function') {
console.log('[SimpleViews] loaded view: ' + identifier);
this.views[identifier] = new this.views[identifier](window);