1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 03:17:58 +01:00

Deprecate :let and dactyl.globalVariables.

This commit is contained in:
Kris Maglione
2010-10-04 17:15:37 -04:00
parent 476c908da1
commit 871085f917
7 changed files with 47 additions and 9 deletions

View File

@@ -131,6 +131,11 @@ const Command = Class("Command", {
* @param {Object} modifiers Any modifiers to be passed to {@link #action}.
*/
execute: function (args, modifiers) {
if (this.deprecated) {
let loc = io.sourcing ? io.sourcing.file + ":" + io.sourcing.line + ": " : "";
dactyl.echoerr(loc + ":" + this.name + " is deprecated");
}
let self = this;
modifiers = modifiers || {};