From: uyaji Date: Mon, 28 Oct 2013 07:10:38 +0000 (+0900) Subject: Refactoring (syntax sugar) X-Git-Url: http://git.sourceforge.jp/view?p=open-pdm-light%2FPartList.git;a=commitdiff_plain;h=ae9e59d29613125281bb4dd2a5b309ed07c67e0d;hp=c363c41b336b13eed756a4c88ded08f4865a760f Refactoring (syntax sugar) --- diff --git a/PartsList/PartsList/app/controllers/services/PartsList.scala b/PartsList/PartsList/app/controllers/services/PartsList.scala index 2cf1a73..b2c8843 100644 --- a/PartsList/PartsList/app/controllers/services/PartsList.scala +++ b/PartsList/PartsList/app/controllers/services/PartsList.scala @@ -36,7 +36,7 @@ case class PartsList() { if(!targetChildren.contains(compare)) { //存在しない場合、表示をOff val position:Int = allChildrenList.indexOf(compare) - allChildrenList.apply(position).showOn = 0 + allChildrenList(position).showOn = 0 } } // 表示制御済みの部品表配列を蓄積