Commit 80fc6b35866f157a520aeb380d302cdafa245a2a

Authored by Leonardo Merlin
1 parent 8e90d45e

Fix small issues about jshint

src/app/components/programas/programas.directive.js
... ... @@ -28,10 +28,11 @@
28 28 for (var i = vm.categories.length - 1; i >= 0; i--) {
29 29 var category = vm.categories[i];
30 30 category.iconClass = vm.getIconClasses(category);
31   - };
  31 + }
32 32 }
33 33  
34 34 ProgramaListController.prototype.getIconClasses = function (tema) {
  35 + $log.debug('[TODO] getIconClasses of tema:', tema);
35 36 return 'glyphicon glyphicon-exclamation-sign';
36 37 };
37 38  
... ...
src/app/partials/article/article.service.js
... ... @@ -30,7 +30,7 @@
30 30 }
31 31  
32 32 function setHomeAbstract (newAbstract) {
33   - return _savedAbstract = newAbstract;
  33 + _savedAbstract = newAbstract;
34 34 }
35 35  
36 36 function getHomeAbstract () {
... ...
src/app/partials/inicio/inicio.controller.js
  1 +/* globals document:true */
1 2 (function() {
2 3 'use strict';
3 4  
... ... @@ -53,8 +54,8 @@
53 54  
54 55 // inject dependencies
55 56 injectIframeApiJs();
56   - window.onYouTubeIframeAPIReady = window.onYouTubeIframeAPIReady || onYouTubeIframeAPIReady;
57   - window.onYouTubePlayerReady = window.onYouTubePlayerReady || onYouTubePlayerReady;
  57 + document.onYouTubeIframeAPIReady = document.onYouTubeIframeAPIReady || onYouTubeIframeAPIReady;
  58 + document.onYouTubePlayerReady = document.onYouTubePlayerReady || onYouTubePlayerReady;
58 59 };
59 60  
60 61 InicioController.prototype.handleHomeAbstract = function(abstract) {
... ... @@ -76,7 +77,7 @@
76 77  
77 78 function onYouTubeIframeAPIReady() {
78 79 var ytIframe = angular.element.find('.js-iframe iframe');
79   - new window.YT.Player(ytIframe[0], {
  80 + new document.YT.Player(ytIframe[0], {
80 81 events: {
81 82 'onReady': onYouTubePlayerReady
82 83 }
... ...