utils/Abiword: use function after definition

This commit is contained in:
booo 2011-12-22 23:20:09 +01:00
parent 6a4f8f2b63
commit 095ab1ced0

View file

@ -89,8 +89,6 @@ else
throw "Abiword died with exit code " + code;
});
//delegate the processing of stdout to a other function
abiword.stdout.on('data',onAbiwordStdout);
var stdoutCallback = null;
var stdoutBuffer = "";
@ -122,6 +120,9 @@ else
}
};
//delegate the processing of stdout to a other function
abiword.stdout.on('data',onAbiwordStdout);
doConvertTask = function(task, callback)
{
abiword.stdin.write("convert " + task.srcFile + " " + task.destFile + " " + task.type + "\n");