Skip to content

Instantly share code, notes, and snippets.

@fundon
Created April 4, 2014 04:51
Show Gist options
  • Save fundon/9968379 to your computer and use it in GitHub Desktop.
Save fundon/9968379 to your computer and use it in GitHub Desktop.
subscribe pane active-changed
@subscribe @paneView, 'pane:active-item-changed', =>
@log 'pane:active-item-changed'
#@onActiveItemChanged()
@subscribe atom.workspaceView, 'pane-container:active-pane-item-changed', =>
@log 'pane-container:active-pane-item-changed'
#@onActiveItemChanged()
@subscribe @paneView.model.$activeItem, (item) =>
@log 233, item is @activeItem
@log item, @activeItem
return if item is @activeItem
@activeItem = item
@log 'set @activeItem'
#@onActiveItemChanged(item)
@subscribe @paneView.model.$active, (item) =>
@log '@active', item
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment