mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 14:47:12 -04:00
utils/Abiword: use function after definition
This commit is contained in:
parent
6a4f8f2b63
commit
095ab1ced0
1 changed files with 3 additions and 2 deletions
|
@ -89,8 +89,6 @@ else
|
||||||
throw "Abiword died with exit code " + code;
|
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 stdoutCallback = null;
|
||||||
var stdoutBuffer = "";
|
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)
|
doConvertTask = function(task, callback)
|
||||||
{
|
{
|
||||||
abiword.stdin.write("convert " + task.srcFile + " " + task.destFile + " " + task.type + "\n");
|
abiword.stdin.write("convert " + task.srcFile + " " + task.destFile + " " + task.type + "\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue