Files
Florian Müllner c69ea808ae launch-new-instance: Fix warning
Commit 2667b9f3e5 updated the extension for a shell change that
renamed _onActivate() to _activate, but forgot to also rename the
declaration of the variable that stores the original function.
Fix this to stop a warning about assignment to an undefined variable.

https://bugzilla.gnome.org/show_bug.cgi?id=745470
2015-03-02 21:05:43 +01:00

18 lines
362 B
JavaScript

const AppDisplay = imports.ui.appDisplay;
let _activateOriginal = null;
function init() {
}
function enable() {
_activateOriginal = AppDisplay.AppIcon.prototype.activate;
AppDisplay.AppIcon.prototype.activate = function() {
_activateOriginal.call(this, 2);
};
}
function disable() {
AppDisplay.AppIcon.prototype.activate = _activateOriginal;
}