1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 10:47:57 +01:00

move LocalFile and fopen to a vimperator.io namespace

This commit is contained in:
Doug Kearns
2007-10-16 01:53:37 +00:00
parent 5eb7d90013
commit 70a4dff190
4 changed files with 29 additions and 29 deletions

View File

@@ -269,11 +269,6 @@ const vimperator = (function() //{{{
content.focus(); // FIXME: shouldn't be window.document.content?
},
fopen: function(path, mode, perms, tmp)
{
return new LocalFile(path, mode, perms, tmp);
},
// partial sixth level expression evaluation
eval: function(string)
{
@@ -582,7 +577,7 @@ const vimperator = (function() //{{{
if (input)
{
filein = getTempFile();
var fdin = vimperator.fopen(filein, ">");
var fdin = vimperator.io.fopen(filein, ">");
fdin.write(input);
fdin.close();
command += " < \"" + filein.path.replace('"', '\\"') + "\"";
@@ -594,7 +589,7 @@ const vimperator = (function() //{{{
else
res = this.run("sh", ["-c", command], true);
var fd = vimperator.fopen(fileout, "<");
var fd = vimperator.io.fopen(fileout, "<");
if (!fd)
return "";
@@ -619,7 +614,7 @@ const vimperator = (function() //{{{
try
{
var fd = vimperator.fopen(filename, "<");
var fd = vimperator.io.fopen(filename, "<");
if (!fd)
return;
@@ -773,7 +768,7 @@ const vimperator = (function() //{{{
if (plugin_dir)
{
var fd = vimperator.fopen(plugin_dir);
var fd = vimperator.io.fopen(plugin_dir);
var entries = fd.read();
fd.close();
vimperator.log("Sourcing plugin directory...", 3);