only update text layer if the document changes
This commit is contained in:
parent
f74b72b0fb
commit
8135c9a612
4 changed files with 65 additions and 36 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue