X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/4a081f65f754c79a437d983ee1a22c60f97ee784..1a51f254c2c899b068ecfca66fd472ae79fadda3:/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),