mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 22:47:59 +01:00
Fix CommandLine#History docs. Add evil fold markers.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 //////////////////////////////////////////////////
|
||||
|
||||
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user