Use doc.getLength() to be compatible with ProxyDocument in Cloud9

This commit is contained in:
James Allen 2011-05-24 19:55:54 +01:00
commit d58ac71ad8

View file

@ -1088,8 +1088,8 @@ var EditSession = function(text, mode) {
}
}
if (useWrapMode && this.$wrapData.length != this.doc.$lines.length) {
console.error("The length of doc.$lines and $wrapData have to be the same!");
if (useWrapMode && this.$wrapData.length != this.doc.getLength()) {
console.error("doc.getLength() and $wrapData.length have to be the same!");
}
useWrapMode && this.$updateWrapData(firstRow, lastRow);