X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fcontent%2Fautocommands.js;fp=common%2Fcontent%2Fautocommands.js;h=7bb23472efb0e28a5b5b86420d8ef0f1edffd08d;hb=0bcd111e64a8cb0f8019a4cb3270fc5b46270a1b;hp=582337ce8bf3a63777b0d6fbdc0aab8cb4731479;hpb=4385b68da3a031ef7347f966df57b6e52d48ec94;p=dactyl.git diff --git a/common/content/autocommands.js b/common/content/autocommands.js index 582337c..7bb2347 100644 --- a/common/content/autocommands.js +++ b/common/content/autocommands.js @@ -1,6 +1,6 @@ // Copyright (c) 2006-2008 by Martin Stubenschrott // Copyright (c) 2007-2011 by Doug Kearns -// Copyright (c) 2008-2013 Kris Maglione +// Copyright (c) 2008-2014 Kris Maglione // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. @@ -71,13 +71,15 @@ var AutoCmdHive = Class("AutoCmdHive", Contexts.Hive, { */ var AutoCommands = Module("autocommands", { init: function () { + if (!config.haveGecko("26")) + delete config.autocommands.DownloadPost; // FIXME }, get activeHives() contexts.allGroups.autocmd.filter(h => h._store.length), - add: deprecated("group.autocmd.add", { get: function add() autocommands.user.closure.add }), - get: deprecated("group.autocmd.get", { get: function get() autocommands.user.closure.get }), - remove: deprecated("group.autocmd.remove", { get: function remove() autocommands.user.closure.remove }), + add: deprecated("group.autocmd.add", { get: function add() autocommands.user.bound.add }), + get: deprecated("group.autocmd.get", { get: function get() autocommands.user.bound.get }), + remove: deprecated("group.autocmd.remove", { get: function remove() autocommands.user.bound.remove }), /** * Lists all autocommands with a matching *event*, *regexp* and optionally