      1 function HomeAssistant() {
      2   this.scenes = {items: [
      3     {name: 'Run Tests', scene: 'test'},
      4     {name: 'Commando', scene: 'commando'}
      5   ]};
      6 };
      7
      8
      9 HomeAssistant.prototype.setup = function() {
     10   this.controller.setupWidget(
     11     'menuList',
     12     {itemTemplate: 'home/scene', listTemplate: 'home/scene-list'},
     13     this.scenes
     14   );
     15   Mojo.Event.listen(this.controller.get('menuList'), Mojo.Event.listTap, this.sceneSelected.bind(this));
     16 };
     17
     18
     19 HomeAssistant.prototype.sceneSelected = function(event) {
     20   this.controller.stageController.pushScene(event.item.scene);
     21 };
     22