Skip to content

Commit 86a67a3

Browse files
committed
fix: broken StatusField.prototype.init
1 parent 5994024 commit 86a67a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

common/content/statusline.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
/**
99
* @param {String} name
1010
* @param {String} description
11-
* @param {String|TemplateXML} node
11+
* @param {String|TemplateSupportsXML} node
1212
* String : the id attribute value of the existing node
13-
* TemplateXML: a TemplateXML instance. e.g) xml`<xul:label ...>`
13+
* TemplateSupportsXML: a TemplateSupportsXML instance. e.g) xml`<xul:label ...>`
1414
* @param {Function} updater
1515
* @param {Object} extraInfo
1616
*/
@@ -26,13 +26,13 @@ const StatusField = Class("StatusField", {
2626
if (!this.node)
2727
throw new Error('the element is not found: "' + node + '"');
2828
}
29-
else if (node instanceof TemplateXML) {
29+
else if (node instanceof TemplateSupportsXML) {
3030
this.node = util.xmlToDom(node, document);
3131
this.node.setAttribute("id", "liberator-status-" + name);
3232
statusline._statuslineWidget.appendChild(this.node);
3333
}
3434
else
35-
throw new TypeError("the argument node must be String or TemplateXML: " + node);
35+
throw new TypeError("the argument node must be String or TemplateSupportsXML: " + node);
3636

3737
this.node.hidden = true;
3838
if (extraInfo)

0 commit comments

Comments
 (0)