diff --git a/plugin.js b/plugin.js index 8cb4693..23eec3c 100644 --- a/plugin.js +++ b/plugin.js @@ -89,24 +89,6 @@ // fires "hover:enter" on the focused .selector when OK/Enter is pressed. Lampa.Controller.collectionSet(grid); Lampa.Controller.collectionFocus(cards[0], grid); - - // Enter (OK button) and Back handlers for this screen. - Lampa.Controller.add('mymovies', { - enter: function () { - var el = grid.find('.card.selector.focus')[0] || cards[0]; - if (!el) return; - var id = $(el).attr('data-id'); - var m = comp._movies ? comp._movies.find(function (x) { return x.id === id; }) : null; - if (m) openMovie(m); - }, - back: function () { - Lampa.Activity.back(); - }, - gone: function () { - Lampa.Controller.clear('mymovies'); - } - }); - Lampa.Controller.toggle('mymovies'); }; this.render = function () {