kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Only set the style of the button widget if the style attribute is specified
rodzic
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;
|
||||||
|
|
Ładowanie…
Reference in New Issue