Skip to content

Commit

Permalink
Merge pull request #57 from maarekj/master
Browse files Browse the repository at this point in the history
FIX BUG #56
  • Loading branch information
wnielson committed Sep 23, 2013
2 parents a5ef378 + bd75fbb commit 1ccb8c5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ux/slidenavigation/View.js
Expand Up @@ -275,13 +275,15 @@ Ext.define('Ext.ux.slidenavigation.View', {

var selectedItemIndex = 0;

Ext.each(this.list.getStore().getRange(), function(item, index) {
if (item.get('selected') === true) {
selectedItemIndex = index;
}
});
if (this.list.getStore().getCount() > 0) {
Ext.each(this.list.getStore().getRange(), function(item, index) {
if (item.get('selected') === true) {
selectedItemIndex = index;
}
});

this.list.select(selectedItemIndex);
this.list.select(selectedItemIndex);
}

this.__init = true;

Expand Down

0 comments on commit 1ccb8c5

Please sign in to comment.