this.action.on('paramsChanged', function() {
this.render();
}, this);
- this.setElement(viewTemplate());
+ this.setElement(viewTemplate({tutorial: this.options.tutorial}));
},
render: function() {
/* globals document */
this.trigger('mousedown');
},
onExecute: function() {
- this.action.execute(function(ret) {
- this.trigger('actionExecuted', this.action, ret);
- }.bind(this));
+ this.action.execute();
},
onSelectionChange: function(e) {
var select = $(e.target),
}
});
-var create = function(action) {
- var view = new ActionView({action:action});
+var create = function(action, tutorial) {
+ var view = new ActionView({action: action, tutorial: tutorial});
view.render();
return {