     @emit 'item-added', item, index
     item
 
-  # Public:
   removeItem: (item, destroying) ->
     index = @items.indexOf(item)
     @removeItemAtIndex(index, destroying) if index >= 0
 
-  # Public: Just remove the item at the given index.
   removeItemAtIndex: (index, destroying) ->
     item = @items[index]
     @showNextItem() if item is @activeItem and @items.length > 1

PaneAxisModel = require './pane-axis-model'
Pane = null

module.exports =
class PaneModel extends Model
  atom.deserializers.add(this)

      when 1 then false
      when 2 then true

  # Public: Saves the active item.
  saveActiveItem: ->
    @saveItem(@activeItem)

  # Public: Saves the active item at a prompted-for location.
  saveActiveItemAs: ->
    @saveItemAs(@activeItem)

  # Public: Saves the specified item.
  #
  # * item: The item to save.
  # * nextAction: An optional function which will be called after the item is saved.
  saveItem: (item, nextAction) ->
    if item.getUri?()
      item.save?()
