X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/4a081f65f754c79a437d983ee1a22c60f97ee784..bec14a088e45d21ac12f9c5e852dd0b7e559d680:/src/editor/modules/documentToolbar/actionView.js 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),