Просмотр исходного кода

style(playlist): remove semi colons for functions in TS

bergquist 10 лет назад
Родитель
Сommit
b6f276265d

+ 13 - 13
public/app/features/playlist/playlist_edit_ctrl.ts

@@ -44,7 +44,7 @@ export class PlaylistEditCtrl {
     });
 
     this.filteredTags = this.tagresult;
-  };
+  }
 
   addPlaylistItem(playlistItem) {
     playlistItem.value = playlistItem.id.toString();
@@ -53,7 +53,7 @@ export class PlaylistEditCtrl {
 
     this.playlistItems.push(playlistItem);
     this.filterFoundPlaylistItems();
-  };
+  }
 
   addTagPlaylistItem(tag) {
     console.log(tag);
@@ -92,31 +92,31 @@ export class PlaylistEditCtrl {
       }, () => {
         this.$scope.appEvent('alert-error', ['Unable to save playlist', '']);
       });
-  };
+  }
 
   isNew() {
     return !this.playlist.id;
-  };
+  }
 
   isPlaylistEmpty() {
     return !this.playlistItems.length;
-  };
+  }
 
   isSearchResultsEmpty() {
     return !this.dashboardresult.length;
-  };
+  }
 
   isSearchQueryEmpty() {
     return this.searchQuery === '';
-  };
+  }
 
   backToList() {
     this.$location.path('/playlists');
-  };
+  }
 
   isLoading() {
     return this.loading;
-  };
+  }
 
   searchStarted(promise) {
     promise.then((data) => {
@@ -126,7 +126,7 @@ export class PlaylistEditCtrl {
       this.tagresult = data.tagResult;
       this.filterFoundPlaylistItems();
     });
-  };
+  }
 
   movePlaylistItem(playlistItem, offset) {
     var currentPosition = this.playlistItems.indexOf(playlistItem);
@@ -136,15 +136,15 @@ export class PlaylistEditCtrl {
       this.playlistItems.splice(currentPosition, 1);
       this.playlistItems.splice(newPosition, 0, playlistItem);
     }
-  };
+  }
 
   movePlaylistItemUp(playlistItem) {
     this.movePlaylistItem(playlistItem, -1);
-  };
+  }
 
   movePlaylistItemDown(playlistItem) {
     this.movePlaylistItem(playlistItem, 1);
-  };
+  }
 }
 
 coreModule.controller('PlaylistEditCtrl', PlaylistEditCtrl);

+ 4 - 4
public/app/features/playlist/playlist_search.ts

@@ -39,11 +39,11 @@ export class PlaylistSearchCtrl {
   showStarred() {
     this.query.starred = !this.query.starred;
     this.searchDashboards();
-  };
+  }
 
   queryHasNoFilters() {
     return this.query.query === '' && this.query.starred === false && this.query.tag.length === 0;
-  };
+  }
 
   filterByTag(tag, evt) {
     this.query.tag.push(tag);
@@ -52,7 +52,7 @@ export class PlaylistSearchCtrl {
       evt.stopPropagation();
       evt.preventDefault();
     }
-  };
+  }
 
   getTags() {
     var prom: any = {};
@@ -65,7 +65,7 @@ export class PlaylistSearchCtrl {
     });
 
     this.searchStarted(prom);
-  };
+  }
 }
 
 export function playlistSearchDirective() {

+ 2 - 3
public/app/features/playlist/playlists_ctrl.ts

@@ -25,7 +25,7 @@ export class PlaylistsCtrl {
         this.$scope.appEvent('alert-error', ['Unable to delete playlist', '']);
         this.playlists.push(playlist);
       });
-  };
+  }
 
   removePlaylist(playlist) {
 
@@ -38,8 +38,7 @@ export class PlaylistsCtrl {
         this.removePlaylistConfirmed(playlist);
       }
     });
-
-  };
+  }
 }
 
 coreModule.controller('PlaylistsCtrl', PlaylistsCtrl);