|
|
@ -363,7 +363,7 @@ class Terminal { |
|
|
|
registerType (typename, template) { |
|
|
|
registerType (typename, template) { |
|
|
|
var self = this |
|
|
|
var self = this |
|
|
|
if (typeof template !== 'function') throw new Error('invalid template') |
|
|
|
if (typeof template !== 'function') throw new Error('invalid template') |
|
|
|
self._template[typename] = template |
|
|
|
self._templates[typename] = template |
|
|
|
} |
|
|
|
} |
|
|
|
log () { |
|
|
|
log () { |
|
|
|
var self = this |
|
|
|
var self = this |
|
|
|