From 0aa3eca42084a1c4d2fd28d76e278a478eeb3334 Mon Sep 17 00:00:00 2001 From: OldHawk Date: Thu, 18 Jan 2018 18:47:22 +0800 Subject: [PATCH] fix(core): fixed eslint error --- .../client/directives/torrent-image-list.client.directive.js | 4 ++-- modules/torrents/client/less/torrents.less | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/core/client/directives/torrent-image-list.client.directive.js b/modules/core/client/directives/torrent-image-list.client.directive.js index 366b0466..c84c1bba 100644 --- a/modules/core/client/directives/torrent-image-list.client.directive.js +++ b/modules/core/client/directives/torrent-image-list.client.directive.js @@ -20,11 +20,11 @@ var targetNode = element[0]; var config = {childList: true}; var callback = function (mutationsList) { - for (var mutation of mutationsList) { + angular.forEach(mutationsList, function (mutation) { if (mutation.type === 'childList') { organizeImage(); } - } + }); }; if (til) { diff --git a/modules/torrents/client/less/torrents.less b/modules/torrents/client/less/torrents.less index 565aa037..bde17008 100644 --- a/modules/torrents/client/less/torrents.less +++ b/modules/torrents/client/less/torrents.less @@ -65,6 +65,7 @@ } } +/* csslint ignore:start */ .film-strip { border-top: solid 26px; border-bottom: solid 26px; @@ -90,4 +91,5 @@ &::-webkit-scrollbar-thumb { background-color: #555; } -} \ No newline at end of file +} +/* csslint ignore:end */