diff options
Diffstat (limited to 'js/misc/signals.js')
-rw-r--r-- | js/misc/signals.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/js/misc/signals.js b/js/misc/signals.js new file mode 100644 index 0000000..f4acced --- /dev/null +++ b/js/misc/signals.js @@ -0,0 +1,22 @@ +const Signals = imports.signals; +const SignalTracker = imports.misc.signalTracker; + +var EventEmitter = class EventEmitter { + connectObject(...args) { + return SignalTracker.connectObject(this, ...args); + } + + disconnectObject(...args) { + return SignalTracker.disconnectObject(this, ...args); + } + + connect_object(...args) { + return this.connectObject(...args); + } + + disconnect_object(...args) { + return this.disconnectObject(...args); + } +}; + +Signals.addSignalMethods(EventEmitter.prototype); |