Skip to content

Commit

Permalink
Use -> arrows on methods moved to the model
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Sobo committed Jan 10, 2014
1 parent c127237 commit ddf7c04
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pane-model.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ class PaneModel extends Model
@items[index]

# Public: Switches to the next contained item.
showNextItem: =>
showNextItem: ->
index = @getActiveItemIndex()
if index < @items.length - 1
@showItemAtIndex(index + 1)
else
@showItemAtIndex(0)

# Public: Switches to the previous contained item.
showPreviousItem: =>
showPreviousItem: ->
index = @getActiveItemIndex()
if index > 0
@showItemAtIndex(index - 1)
Expand Down Expand Up @@ -182,11 +182,11 @@ class PaneModel extends Model
when 2 then true

# Public: Saves the currently focused item.
saveActiveItem: =>
saveActiveItem: ->
@saveItem(@activeItem)

# Public: Save and prompt for path for the currently focused item.
saveActiveItemAs: =>
saveActiveItemAs: ->
@saveItemAs(@activeItem)

# Public: Saves the specified item and call the next action when complete.
Expand All @@ -210,7 +210,7 @@ class PaneModel extends Model
nextAction?()

# Public: Saves all items in this pane.
saveItems: =>
saveItems: ->
@saveItem(item) for item in @getItems()

# Public: Finds the first item that matches the given uri.
Expand Down

0 comments on commit ddf7c04

Please sign in to comment.