X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fcontent%2Fhistory.js;h=c69237f1fc16403d0e6a7028f838b32dccfface8;hb=8b6fcae7eaa413bc62d645d2d0c99835c47265e6;hp=94985d2648024d9d7afb2b7906b009c3a58aaa78;hpb=9044153cb63835e39b9de8ec4ade237c03e3888a;p=dactyl.git diff --git a/common/content/history.js b/common/content/history.js index 94985d2..c69237f 100644 --- a/common/content/history.js +++ b/common/content/history.js @@ -1,10 +1,10 @@ // Copyright (c) 2006-2008 by Martin Stubenschrott // Copyright (c) 2007-2011 by Doug Kearns -// Copyright (c) 2008-2011 by Kris Maglione +// Copyright (c) 2008-2012 Kris Maglione // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. -/* use strict */ +"use strict"; var History = Module("history", { SORT_DEFAULT: "-date", @@ -175,7 +175,7 @@ var History = Module("history", { } }, { }, { - commands: function () { + commands: function initCommands() { commands.add(["ba[ck]"], "Go back in the browser history", function (args) { @@ -321,7 +321,7 @@ var History = Module("history", { { argCount: "0" }); }, - completion: function () { + completion: function initCompletion() { completion.domain = function (context) { context.anchored = false; context.compare = function (a, b) String.localeCompare(a.key, b.key); @@ -351,7 +351,7 @@ var History = Module("history", { completion.addUrlCompleter("history", "History", completion.history); }, - mappings: function () { + mappings: function initMappings() { function bind() mappings.add.apply(mappings, [config.browserModes].concat(Array.slice(arguments))); bind([""], "Go to an older position in the jump list",