wlxml: fix tests - extensions needs to be registered before querying nodes
[fnpeditor.git] / src / editor / modules / documentToolbar / documentToolbar.js
index 9ae5c94..6e3d630 100644 (file)
@@ -27,7 +27,7 @@ return function(sandbox) {
             });
 
             group.append(view.dom);
             });
 
             group.append(view.dom);
-            view.on('actionExecuted', function(action, ret) {
+            action.on('actionExecuted', function(ret) {
                 sandbox.publish('actionExecuted', action, ret);
             });
 
                 sandbox.publish('actionExecuted', action, ret);
             });