add component.start() to both list and detail (framework calls instance.start)
This commit is contained in:
1 parent
e2dce77229
commit
a9c4e7d317
1 file changed
+11
@@ -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'); }
|
||||
|
||||
Reference in new issue
Block a user