fixed simpleviews try loading undefiend when no data-views
This commit is contained in:
parent
3d10603328
commit
d0aa64e300
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue