Fix TTS module initialization and dependency issues. Update module IDs for consistency, improve circular dependency detection, and fix UI Controller event handling.
This commit is contained in:
@@ -107,4 +107,18 @@ export class TTSHandler {
|
||||
removeEventListener(eventName, callback) {
|
||||
this.eventTarget.removeEventListener(eventName, callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bind methods to this instance
|
||||
* @param {Array<string>} methodNames - Array of method names to bind
|
||||
*/
|
||||
bindMethods(methodNames) {
|
||||
if (!Array.isArray(methodNames)) return;
|
||||
|
||||
methodNames.forEach(methodName => {
|
||||
if (typeof this[methodName] === 'function') {
|
||||
this[methodName] = this[methodName].bind(this);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user