mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
Обновил nodehun (2.0.6). Добавился метод isCorrect. Убрал компиляцию своих исходников.
git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/nodeJSProjects@63640 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
@ -19,8 +19,8 @@ var arrDictionaries = {};
|
||||
|
||||
/*function CheckDictionary (dict, correct, unCorrect) {
|
||||
if (dict) {
|
||||
dict.spellSuggest(correct, function (err, correct, suggestion, origWord) {
|
||||
console.log(err, correct, suggestion, origWord);
|
||||
dict.isCorrect(correct, function (err, correct, origWord) {
|
||||
console.log(err, correct, origWord);
|
||||
if (err || !correct) logger.error('Error: spelling correct word %s failed!', correct);
|
||||
});
|
||||
|
||||
@ -82,7 +82,7 @@ exports.install = function (server, callbackFunction) {
|
||||
--data.usrWordsLength;
|
||||
checkEnd();
|
||||
} else if ("spell" === data.type) {
|
||||
oDictionary.spellSuggest(word, function (err, correct, suggestion, origWord) {
|
||||
oDictionary.isCorrect(word, function (err, correct, origWord) {
|
||||
data.usrCorrect[index] = (!err && correct);
|
||||
--data.usrWordsLength;
|
||||
checkEnd();
|
||||
|
||||
Reference in New Issue
Block a user