我正在尝试使用Marionete模块来使用Backbone。Backbonejs Marionettejs僵尸视图
例如。像David Sulc在“contact manager”应用程序中完成的“加载微调器”一样,Firefox的“backboneye”插件在“微调器”被内容取代之后向我显示“僵尸视图”。它是“真正的”僵尸,因为它具有“isDestroyed:true”属性?
而且根据Chrome的插件 “Backbone debugger” 的观点已被删除
我应该担心吗?
这里是控制器:
define(["app", "apps/items/itemsView"], function(app, View){
app.module("ItemsApp.List", function(List, app, Backbone, Marionette, $, _){
List.Controller = {
listAllItems: function(){
require(["common/views", "entities/items"], function(CommonViews){
var loadingView = new CommonViews.Loading();
app.main.show(loadingView);
var fetchingItems = app.request("items:entities");
var itemsPageLayout = new View.Layout();
var panelView = new View.Panel();
$.when(fetchingItems).done(function(items){
var allItemsView = new View.Items({collection:items});
itemsPageLayout.on("show", function(){
itemsPageLayout.panelRegion.show(panelView);
itemsPageLayout.itemListRegion.show(allItemsView);
});
app.main.show(itemsPageLayout);
});
});
}
}
});
return app.ItemsApp.List.Controller;
});