Permalink
Browse files

Update morecard config to use initComponent

  • Loading branch information...
1 parent 670e12a commit b9405c89ec7f32708a247a01a92ea9d74daf1450 @nelstrom nelstrom committed Jul 29, 2011
Showing with 9 additions and 4 deletions.
  1. +9 −4 public/app/views/morecard.js
@@ -1,11 +1,16 @@
ToolbarDemo.views.Morecard = Ext.extend(Ext.NestedList, {
title: "More",
iconCls: "more",
- store: ToolbarDemo.morestore,
cardSwitchAnimation: 'slide',
- getDetailCard: function(item, parent) {
- var itemData = item.attributes.record.data;
- return itemData.card;
+ initComponent: function() {
+ Ext.apply(this, {
+ store: ToolbarDemo.morestore,
+ getDetailCard: function(item, parent) {
+ var itemData = item.attributes.record.data;
+ return itemData.card;
+ }
+ });
+ ToolbarDemo.views.Morecard.superclass.initComponent.apply(this, arguments);
}
});

0 comments on commit b9405c8

Please sign in to comment.