Skip to content

Commit

Permalink
Merge pull request #25 from jerone/issue-18
Browse files Browse the repository at this point in the history
atom.workspaceView is deprecated. Fixes #8 and fixes #18
  • Loading branch information
suda committed Apr 20, 2015
2 parents e44f944 + 2e2ec15 commit 933d0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/toolbar-button-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ToolbarButtonView extends View
@on 'click', =>
if !@hasClass('disabled')
if typeof(callback) == 'string'
atom.workspaceView.trigger callback
atom.commands.dispatch atom.views.getView(atom.workspace), callback
else
callback()

Expand Down

0 comments on commit 933d0a6

Please sign in to comment.