 
 class Leaf.ObservableArray extends Leaf.ObservableBase
-
-  # toLeafIDs = (ary) -> Array::map.call ary, (v) -> if v?.__observable then v.toLeafID() else v
 
   setData: (data = []) ->
     @_data = []

    @length

  pop: ->
    @_recordOperation
      method: 'pop'
      removed: [@length - 1, @length - 1]

    @_archiveCurrentData()
    res = @_data.pop()


  _update: ->
    len = @_data.length
    plen = @_prev.length

    if plen < len
      @_accessor i for i in [plen...len] by 1

    super()

