diff --git a/plugin.js b/plugin.js index ee14574..f88e017 100644 --- a/plugin.js +++ b/plugin.js @@ -21,11 +21,15 @@ } // ---------- Компонент: список фильмов ---------- + // Паттерн из официального iptv-плагина Lampa: + // create() возвращает this.render(); render() строит html и выводит через Lampa.Layer. Lampa.Component.add(PLUGIN.name, { create: function () { + return this.render(); + }, + render: function () { var comp = this; - var content = comp.activity.render().find('.main__content'); - content.html('