passing the ToolbarItem to the callback

This commit is contained in:
cohitre 2013-04-15 16:06:32 -07:00
parent 0c52fb5e30
commit 602380abb7
2 changed files with 16 additions and 8 deletions

View file

@ -138,10 +138,10 @@ _.extend(SelectButton.prototype, Button.prototype, {
render: function () {
var attributes = {
id: this.attributes.id,
"data-key": "",
"data-key": this.attributes.command,
"data-type": "select"
};
return this.li(attributes,
return tag("li", attributes,
this.select({ id: this.attributes.selectId })
);
}