Fix all res/ files with ESLint rules with 0 errors.

This commit is contained in:
Gunther Brunner
2016-01-19 23:08:33 +09:00
parent 1006564ae7
commit a3f815c118
258 changed files with 1634 additions and 1634 deletions

View File

@@ -3,25 +3,25 @@ module.exports = function niceTabsDirective() {
restrict: 'EA',
replace: true,
template: require('./nice-tabs.jade'),
link: function (scope, element, attrs) {
link: function(scope, element, attrs) {
// TODO: add support for 'key' for saving in Settings
// TODO: add support for 'direction=below' for below tabs
scope.$watch(attrs.tabs, function (newValue) {
scope.$watch(attrs.tabs, function(newValue) {
scope.tabs = newValue
})
scope.$watch(attrs.filter, function (newValue) {
scope.$watch(attrs.filter, function(newValue) {
scope.filter = newValue
})
scope.tabFound = function (tab) {
scope.tabFound = function(tab) {
if (!tab.filters) {
return true
}
var found = false
angular.forEach(tab.filters, function (value) {
angular.forEach(tab.filters, function(value) {
if (value === scope.filter) {
found = true
}