OSDN Git Service

Refactoring (syntax sugar)
authoruyaji <yuichiro.uyama@gmail.com>
Mon, 28 Oct 2013 07:10:38 +0000 (16:10 +0900)
committeruyaji <yuichiro.uyama@gmail.com>
Mon, 28 Oct 2013 07:10:38 +0000 (16:10 +0900)
PartsList/PartsList/app/controllers/services/PartsList.scala

index 2cf1a73..b2c8843 100644 (file)
@@ -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
                                }
              }
                 // 表示制御済みの部品表配列を蓄積