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