gnome-shell/js/misc/signals.js

23 lines
541 B
JavaScript
Raw Normal View History

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);