mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-22 23:16:53 +00:00
Only set the style of the button widget if the style attribute is specified
This commit is contained in:
parent
fd70aa8c45
commit
8ab7a1dd8f
@ -47,7 +47,9 @@ ButtonWidget.prototype.render = function(parent,nextSibling) {
|
|||||||
}
|
}
|
||||||
domNode.className = classes.join(" ");
|
domNode.className = classes.join(" ");
|
||||||
// Assign classes
|
// Assign classes
|
||||||
domNode.setAttribute("style",this.style);
|
if(this.style) {
|
||||||
|
domNode.setAttribute("style",this.style);
|
||||||
|
}
|
||||||
// Add a click event handler
|
// Add a click event handler
|
||||||
domNode.addEventListener("click",function (event) {
|
domNode.addEventListener("click",function (event) {
|
||||||
var handled = false;
|
var handled = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user