diff --git a/src/app/components/programas/programas.directive.js b/src/app/components/programas/programas.directive.js index d17ae45..c0e1f6d 100644 --- a/src/app/components/programas/programas.directive.js +++ b/src/app/components/programas/programas.directive.js @@ -28,10 +28,11 @@ for (var i = vm.categories.length - 1; i >= 0; i--) { var category = vm.categories[i]; category.iconClass = vm.getIconClasses(category); - }; + } } ProgramaListController.prototype.getIconClasses = function (tema) { + $log.debug('[TODO] getIconClasses of tema:', tema); return 'glyphicon glyphicon-exclamation-sign'; }; diff --git a/src/app/partials/article/article.service.js b/src/app/partials/article/article.service.js index 8ddc524..9a21f47 100644 --- a/src/app/partials/article/article.service.js +++ b/src/app/partials/article/article.service.js @@ -30,7 +30,7 @@ } function setHomeAbstract (newAbstract) { - return _savedAbstract = newAbstract; + _savedAbstract = newAbstract; } function getHomeAbstract () { diff --git a/src/app/partials/inicio/inicio.controller.js b/src/app/partials/inicio/inicio.controller.js index 2d0a636..d6f05a5 100644 --- a/src/app/partials/inicio/inicio.controller.js +++ b/src/app/partials/inicio/inicio.controller.js @@ -1,3 +1,4 @@ +/* globals document:true */ (function() { 'use strict'; @@ -53,8 +54,8 @@ // inject dependencies injectIframeApiJs(); - window.onYouTubeIframeAPIReady = window.onYouTubeIframeAPIReady || onYouTubeIframeAPIReady; - window.onYouTubePlayerReady = window.onYouTubePlayerReady || onYouTubePlayerReady; + document.onYouTubeIframeAPIReady = document.onYouTubeIframeAPIReady || onYouTubeIframeAPIReady; + document.onYouTubePlayerReady = document.onYouTubePlayerReady || onYouTubePlayerReady; }; InicioController.prototype.handleHomeAbstract = function(abstract) { @@ -76,7 +77,7 @@ function onYouTubeIframeAPIReady() { var ytIframe = angular.element.find('.js-iframe iframe'); - new window.YT.Player(ytIframe[0], { + new document.YT.Player(ytIframe[0], { events: { 'onReady': onYouTubePlayerReady } -- libgit2 0.21.2