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