浏览代码

card colors: remove unused variables

Benjamin Tissoires 6 年之前
父节点
当前提交
5fa0821e07
共有 2 个文件被更改,包括 0 次插入5 次删除
  1. 0 1
      client/components/cards/cardDetails.js
  2. 0 4
      client/components/cards/minicard.js

+ 0 - 1
client/components/cards/cardDetails.js

@@ -27,7 +27,6 @@ BlazeComponent.extendComponent({
   onCreated() {
     this.currentBoard = Boards.findOne(Session.get('currentBoard'));
     this.isLoaded = new ReactiveVar(false);
-    this.currentColor = new ReactiveVar(this.data().color);
     const boardBody =  this.parentComponent().parentComponent();
     //in Miniview parent is Board, not BoardBody.
     if (boardBody !== null) {

+ 0 - 4
client/components/cards/minicard.js

@@ -3,10 +3,6 @@
 // });
 
 BlazeComponent.extendComponent({
-  onCreated() {
-    this.currentColor = new ReactiveVar(this.data().color);
-  },
-
   template() {
     return 'minicard';
   },