mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Don’t invoke ::onDidChangeActivePane events unless it really changes
This commit is contained in:
@@ -55,9 +55,9 @@ class PaneContainer extends Model
|
||||
getActivePane: ->
|
||||
@activePane
|
||||
|
||||
setActivePane: (pane) ->
|
||||
if pane isnt @activePane
|
||||
@activePane = pane
|
||||
setActivePane: (activePane) ->
|
||||
if activePane isnt @activePane
|
||||
@activePane = activePane
|
||||
@emitter.emit 'did-change-active-pane', @activePane
|
||||
@activePane
|
||||
|
||||
|
||||
Reference in New Issue
Block a user