X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/4a081f65f754c79a437d983ee1a22c60f97ee784..dec5a3d8b3a4cc70a9b2bc7bc1305ba0ae11a369:/src/editor/modules/documentToolbar/actionView.js?ds=sidebyside diff --git a/src/editor/modules/documentToolbar/actionView.js b/src/editor/modules/documentToolbar/actionView.js index 114eb32..74db332 100644 --- a/src/editor/modules/documentToolbar/actionView.js +++ b/src/editor/modules/documentToolbar/actionView.js @@ -108,8 +108,9 @@ var ActionView = Backbone.View.extend({ this.trigger('mousedown'); }, onExecute: function() { - var ret = this.action.execute(); - this.trigger('actionExecuted', this.action, ret); + this.action.execute(function(ret) { + this.trigger('actionExecuted', this.action, ret); + }.bind(this)); }, onSelectionChange: function(e) { var select = $(e.target),