0

Can anyone help me understand this error? TIA

TypeError: AppView is not a constructor [Break On This Error] var apView = new AppView();

define([
    'jquery',
   'backbone',
   'collections/Directory',
   'views/app',
   'common'
   ]   , function( $, Backbone, DirectoryCollection,AppView , Common ) {

var Workspace = Backbone.Router.extend({
    routes:{            
        "filter/:type": "urlFilter"
    },      

urlFilter: function (type) {            
        var apView = new AppView();
        apView.filterType = type;
        apView.trigger("change:filterType");          
    },

});
return Workspace;

});
4

1 回答 1

0

AppView 是否在范围内或附加到窗口对象,以及扩展 Backbone.View?

于 2012-10-01T15:42:09.227 回答