From: Chip Black Date: Mon, 12 Sep 2011 05:42:40 +0000 (-0500) Subject: Fix list selector on load X-Git-Tag: v1.1.0~4 X-Git-Url: http://git.bytex64.net/?a=commitdiff_plain;h=b4d3a5ecabaed3c2d59f228f0c59ed16285b464b;hp=089e0783d8aad965129668612c46a15dea2224fb;p=Hacks.git Fix list selector on load --- diff --git a/Main.js b/Main.js index 49d130d..086d9eb 100644 --- a/Main.js +++ b/Main.js @@ -52,8 +52,10 @@ enyo.kind({ }); } this.$.hacksListSelector.setItems(displayList); + this.$.hacksListSelector.setValue(this.index); this.startHack(); window.addEventListener('resize', this.resizeHack.bind(this), false); + this.$.info.addRemoveClass('dark', this.hacksList[this.index].dark); this.setNotice('Swipe for more...'); }, setNotice: function(notice) {