Fixing Edit_Session.$resetRowCache in case row == 0.
This commit is contained in:
parent
e7c73a40dd
commit
2518c26d7e
1 changed files with 2 additions and 2 deletions
|
|
@ -106,11 +106,11 @@ var EditSession = function(text, mode) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$resetRowCache = function(row) {
|
this.$resetRowCache = function(row) {
|
||||||
var rowCache = this.$rowCache;
|
|
||||||
if (row == 0) {
|
if (row == 0) {
|
||||||
rowCache = [];
|
this.$rowCache = [];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
var rowCache = this.$rowCache;
|
||||||
for (var i = 0; i < rowCache.length; i++) {
|
for (var i = 0; i < rowCache.length; i++) {
|
||||||
if (rowCache[i].docRow >= row) {
|
if (rowCache[i].docRow >= row) {
|
||||||
rowCache.splice(i, rowCache.length);
|
rowCache.splice(i, rowCache.length);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue