Skip to content

Commit

Permalink
Update morecard config to use initComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Jul 29, 2011
1 parent 670e12a commit b9405c8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions public/app/views/morecard.js
@@ -1,11 +1,16 @@
ToolbarDemo.views.Morecard = Ext.extend(Ext.NestedList, { ToolbarDemo.views.Morecard = Ext.extend(Ext.NestedList, {
title: "More", title: "More",
iconCls: "more", iconCls: "more",
store: ToolbarDemo.morestore,
cardSwitchAnimation: 'slide', cardSwitchAnimation: 'slide',
getDetailCard: function(item, parent) { initComponent: function() {
var itemData = item.attributes.record.data; Ext.apply(this, {
return itemData.card; store: ToolbarDemo.morestore,
getDetailCard: function(item, parent) {
var itemData = item.attributes.record.data;
return itemData.card;
}
});
ToolbarDemo.views.Morecard.superclass.initComponent.apply(this, arguments);
} }
}); });


Expand Down

0 comments on commit b9405c8

Please sign in to comment.