diff options
author | Kris Maglione <maglione.k@gmail.com> | 2009-01-11 14:43:29 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2009-01-11 14:43:29 -0500 |
commit | a524b70b521017d260d3bc31dcb13f70b98d02a7 (patch) | |
tree | 1622f7ee348a8524091139d3caa6d68c27836f02 /common | |
parent | 147cdab5d2757957c12b0b69ccf23945bbaa370a (diff) | |
download | pentadactyl-a524b70b521017d260d3bc31dcb13f70b98d02a7.tar.gz |
Fix CommandLine#History docs. Add evil fold markers.
Diffstat (limited to 'common')
-rw-r--r-- | common/content/services.js | 2 | ||||
-rw-r--r-- | common/content/style.js | 2 | ||||
-rw-r--r-- | common/content/ui.js | 25 | ||||
-rw-r--r-- | common/modules/storage.jsm | 31 |
4 files changed, 20 insertions, 40 deletions
diff --git a/common/content/services.js b/common/content/services.js index 79bc3e73..16638f8a 100644 --- a/common/content/services.js +++ b/common/content/services.js @@ -1,5 +1,5 @@ /***** BEGIN LICENSE BLOCK ***** {{{ - ©2008 Kris Maglione <maglione.k at Gmail> + ©2008-2009 Kris Maglione <maglione.k at Gmail> Distributable under the terms of the MIT license, which allows for sublicensing under any compatible license, including the MPL, GPL, and MPL. Anyone who changes this file is welcome to relicense diff --git a/common/content/style.js b/common/content/style.js index 6da2d5c3..9ba4a48e 100644 --- a/common/content/style.js +++ b/common/content/style.js @@ -1,5 +1,5 @@ /***** BEGIN LICENSE BLOCK ***** {{{ - ©2008 Kris Maglione <maglione.k at Gmail> + ©2008-2009 Kris Maglione <maglione.k at Gmail> Distributable under the terms of the MIT license, which allows for sublicensing under any compatible license, including the MPL, GPL, and MPL. Anyone who changes this file is welcome to relicense diff --git a/common/content/ui.js b/common/content/ui.js index 62984b77..62211168 100644 --- a/common/content/ui.js +++ b/common/content/ui.js @@ -43,7 +43,7 @@ function CommandLine() //{{{ storage.newArray("history-search", true); storage.newArray("history-command", true); - var messageHistory = { + var messageHistory = { // {{{ _messages: [], get messages() { @@ -68,7 +68,7 @@ function CommandLine() //{{{ this._messages.push(message); } - }; + }; // }}} var lastMowOutput = null; var silent = false; @@ -78,10 +78,10 @@ function CommandLine() //{{{ /** * A class for managing the history of an inputField. * - * @param {Object} inputField - * @param {string} mode + * @param {HTMLInputElement} inputField + * @param {string} mode The mode for which we need history. */ - function History(inputField, mode) + function History(inputField, mode) // {{{ { if (!(this instanceof arguments.callee)) return new arguments.callee(inputField, mode); @@ -92,14 +92,15 @@ function CommandLine() //{{{ } History.prototype = { /** - * Empties the history. + * Reset the history index to the first entry. */ reset: function () { this.index = null; }, /** - * Permanently save the history. + * Save the last entry to the permanent store. All duplicate entries + * are removed and the list is truncated, if necessary. */ save: function () { @@ -111,9 +112,9 @@ function CommandLine() //{{{ this.store.truncate(options["history"], true); }, /** - * Set the current match to val. + * Replace the current input field value. * - * @param {string} val + * @param {string} val The new value. */ replace: function (val) { @@ -174,14 +175,14 @@ function CommandLine() //{{{ } } } - }; + }; // }}} /** * A class for tab completions on an input field. * * @param {Object} input */ - function Completions(input) + function Completions(input) // {{{ { if (!(this instanceof arguments.callee)) return new arguments.callee(input); @@ -482,7 +483,7 @@ function CommandLine() //{{{ if (this.items.length == 0) liberator.beep(); } - } + }; // }}} /////////////////////////////////////////////////////////////////////////////}}} ////////////////////// TIMERS ////////////////////////////////////////////////// diff --git a/common/modules/storage.jsm b/common/modules/storage.jsm index 098ae21f..ab59a77d 100644 --- a/common/modules/storage.jsm +++ b/common/modules/storage.jsm @@ -1,30 +1,9 @@ /***** BEGIN LICENSE BLOCK ***** {{{ -Version: MPL 1.1/GPL 2.0/LGPL 2.1 - -The contents of this file are subject to the Mozilla Public License Version -1.1 (the "License"); you may not use this file except in compliance with -the License. You may obtain a copy of the License at -http://www.mozilla.org/MPL/ - -Software distributed under the License is distributed on an "AS IS" basis, -WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -for the specific language governing rights and limitations under the -License. - - © 2008-2009: Kris Maglione <maglione.k at Gmail> -(c) 2006-2009: Martin Stubenschrott <stubenschrott@gmx.net> - -Alternatively, the contents of this file may be used under the terms of -either the GNU General Public License Version 2 or later (the "GPL"), or -the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -in which case the provisions of the GPL or the LGPL are applicable instead -of those above. If you wish to allow use of your version of this file only -under the terms of either the GPL or the LGPL, and not to allow others to -use your version of this file under the terms of the MPL, indicate your -decision by deleting the provisions above and replace them with the notice -and other provisions required by the GPL or the LGPL. If you do not delete -the provisions above, a recipient may use your version of this file under -the terms of any one of the MPL, the GPL or the LGPL. + ©2008-2009 Kris Maglione <maglione.k at Gmail> + Distributable under the terms of the MIT license, which allows + for sublicensing under any compatible license, including the MPL, + GPL, and MPL. Anyone who changes this file is welcome to relicense + it under any or all of those licenseses. }}} ***** END LICENSE BLOCK *****/ var EXPORTED_SYMBOLS = ["storage", "Timer"]; |