diff --git a/plugin.js b/plugin.js index dac58d0..b91254a 100644 --- a/plugin.js +++ b/plugin.js @@ -50,6 +50,12 @@ return comp.render(); }; + // Framework (ActivitySlide.start) calls component.start() after the + // activity is ready. Refresh the selector so focus lands on a card. + this.start = function () { + if (Lampa.Selector) Lampa.Selector.update(); + }; + this.render = function () { var html = document.createElement('div'); html.className = 'mymovies'; @@ -131,6 +137,11 @@ return comp.render(); }; + // Framework (ActivitySlide.start) calls component.start(). + this.start = function () { + if (Lampa.Selector) Lampa.Selector.update(); + }; + this.render = function () { var m = selected; if (!m) { Lampa.Activity.back(); return document.createElement('div'); }