fix: framework calls render() not create() - rename to this.render (iptv pattern)
This commit is contained in:
1 parent
f93a132b9d
commit
c1f9259e28
1 file changed
+2
-2
@@ -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>'); }
|
||||
|
||||
|
||||
Reference in new issue
Block a user