]> git.donarmstrong.com Git - dactyl.git/blobdiff - common/content/marks.js
Import r6923 from upstream hg supporting Firefox up to 22.0a1
[dactyl.git] / common / content / marks.js
index e32d0c6f9c61be4de44cff94a9738131eef0ecbc..4776c1cefed387cf541a8a56679bc882deaeefc4 100644 (file)
@@ -1,10 +1,10 @@
 // Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org>
 // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com>
-// Copyright (c) 2008-2011 by Kris Maglione <maglione.k@gmail.com>
+// Copyright (c) 2008-2012 Kris Maglione <maglione.k@gmail.com>
 //
 // 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";
 
 /**
  * @scope modules
@@ -332,7 +332,7 @@ var Marks = Module("marks", {
             { arg: true });
     },
 
-    commands: function () {
+    commands: function initCommands() {
         commands.add(["delm[arks]"],
             "Delete the specified marks",
             function (args) {
@@ -372,7 +372,7 @@ var Marks = Module("marks", {
             });
     },
 
-    completion: function () {
+    completion: function initCompletion() {
         completion.mark = function mark(context) {
             function percent(i) Math.round(i * 100);
 
@@ -383,7 +383,7 @@ var Marks = Module("marks", {
             context.completions = marks.all;
         };
     },
-    sanitizer: function () {
+    sanitizer: function initSanitizer() {
         sanitizer.addItem("marks", {
             description: "Local and URL marks",
             persistent: true,