Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update morecard config to use initComponent

  • Loading branch information...
commit b9405c89ec7f32708a247a01a92ea9d74daf1450 1 parent 670e12a
Drew Neil nelstrom authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 public/app/views/morecard.js
13 public/app/views/morecard.js
View
@@ -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);
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.