add component.start() to both list and detail (framework calls instance.start)

This commit is contained in:
Hermes committed 2026-08-08 13:24:18 +02:00
1 parent e2dce77229
commit a9c4e7d317
1 file changed
+11
+11
View File
@@ -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'); }