From 989862dd3bddb000309cf933985a24c2a8618a60 Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 25 Nov 2009 09:52:42 +0000 Subject: Follow tip git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35993 d0d07461-0603-4401-acd4-de1884942a52 --- PMWriter.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'PMWriter.js') diff --git a/PMWriter.js b/PMWriter.js index 9b65d5c..97a3499 100644 --- a/PMWriter.js +++ b/PMWriter.js @@ -149,7 +149,7 @@ if (!/\.js$/.test(file.path)) return; - if (!/PLUGIN_INFO/.test(io.readFile(file.path))) + if (!/PLUGIN_INFO/.test(io.File(file.path).read())) return; try { @@ -259,8 +259,7 @@
{detailBody}
; - io.writeFile( - io.getFile(outputDir + htmlFilename), + io.File(outputDir + htmlFilename).write( {pluginFilename} @@ -350,11 +349,11 @@ .toString(); - io.writeFile(io.getFile(outputDir + 'index.html'), indexHtml.toString()); - io.writeFile(io.getFile(outputDir + 'all.html'), allHtml.toString()); + io.File(outputDir + 'index.html').write(indexHtml.toString()); + io.File(outputDir + 'all.html').write(allHtml.toString()); let infoXML = {concatXML(pminfos)}; - io.writeFile(io.getFile(outputDir + 'info.xml'), infoXML.toString()); + io.File(outputDir + 'info.xml').write(infoXML.toString()); } commands.addUserCommand( -- cgit v1.2.3