var action = sandbox.createAction(actionDescription.actionName, actionDescription.actionConfig),
view;
addedActions.push(action);
- view = actionView.create(action);
+ view = actionView.create(action, sandbox.getTutorialItem(action.definition.name));
_.pairs(contextParams).forEach(function(pair) {
var name = pair[0],
});
group.append(view.dom);
- view.on('actionExecuted', function(action, ret) {
+ action.on('actionExecuted', function(ret) {
sandbox.publish('actionExecuted', action, ret);
});
document.on('operationEnd', function() {
setContextParam('document', document);
});
+ setContextParam('document', document);
}
setContextParam('fragment', fragment);