aboutsummaryrefslogtreecommitdiffstats
path: root/encodingSwitcher.js
diff options
context:
space:
mode:
authortrapezoid2008-03-21 01:40:50 +0000
committertrapezoid2008-03-21 01:40:50 +0000
commit0463990fe75c4573fc6463fe685d2ea1e400c370 (patch)
tree9bcca737c142d75f9b48bc5c3719659558628309 /encodingSwitcher.js
parentaad373b519fdaf2b04004db3e95c1571c5d9ddf8 (diff)
downloadvimperator-plugins-0463990fe75c4573fc6463fe685d2ea1e400c370.tar.bz2
lang/javascript/vimperator-plugins/trunk: 08/03/19のCVS HEADに対応
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8231 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'encodingSwitcher.js')
-rw-r--r--encodingSwitcher.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/encodingSwitcher.js b/encodingSwitcher.js
index dc0de26..fc98f4c 100644
--- a/encodingSwitcher.js
+++ b/encodingSwitcher.js
@@ -87,7 +87,7 @@ function completion(array, filter){
}
var sbCharDefault = sbService.createBundle(gPrefService.getDefaultBranch('intl.charset.').getCharPref('default'));
const DEFAULT_CHARSET = sbCharDefault.GetStringFromName('intl.charset.default');
-vimperator.options.add(new vimperator.Option( ['fileencoding','fenc'], 'string',
+liberator.options.add(new liberator.Option( ['fileencoding','fenc'], 'string',
{
shortHelp: 'set the charactor encoding for the current page',
help: 'Please make certain of available value with <code class="command">:lsenc</code> command',
@@ -113,7 +113,7 @@ vimperator.options.add(new vimperator.Option( ['fileencoding','fenc'], 'string',
));
var sbCharDetector = sbService.createBundle(gPrefService.getDefaultBranch('intl.charset.').getCharPref('detector'));
const DEFAULT_DETECTOR = createDetector(sbCharDetector.GetStringFromName('intl.charset.detector'))[0];
-vimperator.options.add(new vimperator.Option( ['autodetector','audet'], 'string',
+liberator.options.add(new liberator.Option( ['autodetector','audet'], 'string',
{
shortHelp: 'set auto detect character encoding',
help: 'Please make certain of available value with <code class="command">:lsdet</code> command',
@@ -165,11 +165,11 @@ function listCharset(arg, current, list){
}
});
str.push('</table>');
- vimperator.echo( str.join(''), true);
+ liberator.echo( str.join(''), true);
}
-vimperator.commands.add(new vimperator.Command(['listencoding','lsenc'],
+liberator.commands.add(new liberator.Command(['listencoding','lsenc'],
function(arg){
- listCharset(arg, vimperator.options.fileencoding, encodings);
+ listCharset(arg, liberator.options.fileencoding, encodings);
},{
usage: ['listencoding [expr]','lsenc [expr]'],
shortHelp: 'list all encodings',
@@ -179,9 +179,9 @@ vimperator.commands.add(new vimperator.Command(['listencoding','lsenc'],
}
}
));
-vimperator.commands.add(new vimperator.Command(['listdetector','lsdet'],
+liberator.commands.add(new liberator.Command(['listdetector','lsdet'],
function(arg){
- listCharset(arg, vimperator.options.autodetector, detectors);
+ listCharset(arg, liberator.options.autodetector, detectors);
},{
usage: ['listdetector [expr]','lsdet [expr]'],
shortHelp: 'list all auto detectors',