mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-25 23:03:15 +00:00
Remove support for deprecated "title" attribute on button widget
This commit is contained in:
parent
d4617ffbe4
commit
62edd1e8a3
|
@ -142,13 +142,6 @@ ButtonWidget.prototype.execute = function() {
|
||||||
this["class"] = this.getAttribute("class","");
|
this["class"] = this.getAttribute("class","");
|
||||||
this["aria-label"] = this.getAttribute("aria-label");
|
this["aria-label"] = this.getAttribute("aria-label");
|
||||||
this.tooltip = this.getAttribute("tooltip");
|
this.tooltip = this.getAttribute("tooltip");
|
||||||
// DEPRECATION WARNING
|
|
||||||
var title = this.getAttribute("title");
|
|
||||||
if(title) {
|
|
||||||
console.log("WARNING: attribute 'title' on button widget should be replaced with 'tooltip'");
|
|
||||||
this.tooltip = title;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.style = this.getAttribute("style");
|
this.style = this.getAttribute("style");
|
||||||
this.selectedClass = this.getAttribute("selectedClass");
|
this.selectedClass = this.getAttribute("selectedClass");
|
||||||
this.defaultSetValue = this.getAttribute("default");
|
this.defaultSetValue = this.getAttribute("default");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user