fix: framework calls render() not create() - rename to this.render (iptv pattern)

This commit is contained in:
Hermes committed 2026-08-08 12:48:42 +02:00
1 parent f93a132b9d
commit c1f9259e28
1 file changed
+2 -2
+2 -2
View File
@@ -25,7 +25,7 @@
// "component is not a constructor"
function MyMovies() {
var comp = this;
this.create = function () {
this.render = function () {
var html = document.createElement('div');
html.className = 'mymovies';
var grid = document.createElement('div');
@@ -82,7 +82,7 @@
var selected = null;
function MyMoviesDetail() {
var comp = this;
this.create = function () {
this.render = function () {
var m = selected;
if (!m) { Lampa.Activity.back(); return $('<div></div>'); }