Commit a1b91911 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #34466

parent 1671cfe5
......@@ -648,28 +648,28 @@ CParaSpellChecker.prototype =
}
}
},
Remove_RightWords : function()
{
var Count = this.Elements.length;
for (var Index = Count - 1; Index >= 0; Index--)
{
var Element = this.Elements[Index];
if ( true === Element.Checked )
{
if (Element.StartRun !== Element.EndRun)
{
Element.StartRun.Remove_SpellCheckerElement(Element);
Element.EndRun.Remove_SpellCheckerElement(Element);
}
else
Element.EndRun.Remove_SpellCheckerElement(Element);
this.Elements.splice(Index, 1);
}
}
}
Remove_RightWords : function()
{
var Count = this.Elements.length;
for (var Index = Count - 1; Index >= 0; Index--)
{
var Element = this.Elements[Index];
if (true === Element.Checked && true !== Element.CurPos)
{
if (Element.StartRun !== Element.EndRun)
{
Element.StartRun.Remove_SpellCheckerElement(Element);
Element.EndRun.Remove_SpellCheckerElement(Element);
}
else
Element.EndRun.Remove_SpellCheckerElement(Element);
this.Elements.splice(Index, 1);
}
}
}
};
//----------------------------------------------------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment