     } = @getOptions()
 
     operation = if lastToFirst then 'prepend' else 'append'
-    newBox    = =>
+
+    newBox = =>
       box = @createBox()
       box.addSubView itemInstance
 


    if index is 0
      if boxed
        @packageItem itemInstance
      else
        @addSubView itemInstance, null, lastToFirst

    else if index > 0

      item = itemInstance.getElement()

      if lastToFirst
        index = @items.length - index - 2
        node  = @items[index].getElement()
        node.parentNode.insertBefore item, node
      else

  createBox: ->

    @boxes.push box = new KDListViewBox
    @addSubView box, null, @getOptions().lastToFirst
    box.on 'HeightChanged', (height) => @updateBoxProps box, height
    box.on 'BoxIsEmptied', (id)=>

