Monotone-Parent: 60ff31486171dacd0f25947a3a9ab21c993ad138

Monotone-Revision: a49b4023ef2ea7a4f4040725d21123c9d0858bbf

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-18T20:04:23
This commit is contained in:
Wolfgang Sourdeau
2012-04-18 20:04:23 +00:00
parent 71ba1e3e70
commit ef816d1f59

View File

@@ -1943,8 +1943,9 @@ function createButton(id, caption, action) {
var span = createElement("span", null, null, null, null, newButton);
span.appendChild(document.createTextNode(caption));
}
if (action)
newButton.on("click", action);
if (action) {
newButton.on("click", clickEventWrapper(action));
}
return newButton;
}