File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
/**
9
9
* @param {String } name
10
10
* @param {String } description
11
- * @param {String|TemplateXML } node
11
+ * @param {String|TemplateSupportsXML } node
12
12
* 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 ...>`
14
14
* @param {Function } updater
15
15
* @param {Object } extraInfo
16
16
*/
@@ -26,13 +26,13 @@ const StatusField = Class("StatusField", {
26
26
if ( ! this . node )
27
27
throw new Error ( 'the element is not found: "' + node + '"' ) ;
28
28
}
29
- else if ( node instanceof TemplateXML ) {
29
+ else if ( node instanceof TemplateSupportsXML ) {
30
30
this . node = util . xmlToDom ( node , document ) ;
31
31
this . node . setAttribute ( "id" , "liberator-status-" + name ) ;
32
32
statusline . _statuslineWidget . appendChild ( this . node ) ;
33
33
}
34
34
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 ) ;
36
36
37
37
this . node . hidden = true ;
38
38
if ( extraInfo )
You can’t perform that action at this time.
0 commit comments