Обновил 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:
Alexander.Trofimov
2015-07-22 10:56:57 +00:00
parent 201aa6eb01
commit 51d10cff83
5 changed files with 4 additions and 1226 deletions

View File

@ -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();