only update text layer if the document changes

This commit is contained in:
Fabian Jakobs 2010-04-08 13:16:03 +02:00
commit 8135c9a612
4 changed files with 65 additions and 36 deletions

View file

@ -18,10 +18,6 @@ TextDocument.prototype =
fireChangeEvent : function(firstRow, lastRow)
{
if (lastRow === undefined) {
lastRow = this.lines.length-1;
}
for (var i=0; i < this.listeners.length; i++) {
this.listeners[i](firstRow, lastRow);
};