From ac6491ea127215cb07ca490fc2cc1af7c3778e8f Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sun, 3 Jan 2016 23:45:46 +0100 Subject: Remove unnecessary template name declaration This code was duplicate with the name we use to `register` the component. A update of blaze-component removed the need to duplicate this declaration. --- client/components/boards/boardArchive.js | 4 ---- client/components/boards/boardBody.js | 8 -------- client/components/boards/boardHeader.js | 16 ---------------- client/components/boards/boardsList.js | 4 ---- 4 files changed, 32 deletions(-) (limited to 'client/components/boards') diff --git a/client/components/boards/boardArchive.js b/client/components/boards/boardArchive.js index bd0de0a3..aab1e2c6 100644 --- a/client/components/boards/boardArchive.js +++ b/client/components/boards/boardArchive.js @@ -5,10 +5,6 @@ Template.boardListHeaderBar.events({ }); BlazeComponent.extendComponent({ - template() { - return 'archivedBoards'; - }, - onCreated() { this.subscribe('archivedBoards'); }, diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index 9c1625cd..15268a6b 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -1,10 +1,6 @@ const subManager = new SubsManager(); BlazeComponent.extendComponent({ - template() { - return 'board'; - }, - onCreated() { this.draggingActive = new ReactiveVar(false); this.showOverlay = new ReactiveVar(false); @@ -180,10 +176,6 @@ Template.boardBody.onRendered(function() { }); BlazeComponent.extendComponent({ - template() { - return 'addListForm'; - }, - // Proxy open() { this.childComponents('inlinedForm')[0].open(); diff --git a/client/components/boards/boardHeader.js b/client/components/boards/boardHeader.js index f8ccfba5..acf40f44 100644 --- a/client/components/boards/boardHeader.js +++ b/client/components/boards/boardHeader.js @@ -41,10 +41,6 @@ Template.boardChangeTitlePopup.events({ }); BlazeComponent.extendComponent({ - template() { - return 'boardHeaderBar'; - }, - isStarred() { const boardId = Session.get('currentBoard'); const user = Meteor.user(); @@ -93,10 +89,6 @@ BlazeComponent.extendComponent({ }).register('boardHeaderBar'); BlazeComponent.extendComponent({ - template() { - return 'boardChangeColorPopup'; - }, - backgroundColors() { return Boards.simpleSchema()._schema.color.allowedValues; }, @@ -119,10 +111,6 @@ BlazeComponent.extendComponent({ }).register('boardChangeColorPopup'); BlazeComponent.extendComponent({ - template() { - return 'createBoardPopup'; - }, - onCreated() { this.visibilityMenuIsOpen = new ReactiveVar(false); this.visibility = new ReactiveVar('private'); @@ -170,10 +158,6 @@ BlazeComponent.extendComponent({ }).register('createBoardPopup'); BlazeComponent.extendComponent({ - template() { - return 'boardChangeVisibilityPopup'; - }, - visibilityCheck() { const currentBoard = Boards.findOne(Session.get('currentBoard')); return this.currentData() === currentBoard.permission; diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js index 131adf9d..e4bb050e 100644 --- a/client/components/boards/boardsList.js +++ b/client/components/boards/boardsList.js @@ -1,8 +1,4 @@ BlazeComponent.extendComponent({ - template() { - return 'boardList'; - }, - boards() { return Boards.find({ archived: false, -- cgit v1.2.3-1-g7c22