fixed defaults

This commit is contained in:
mikedeboer 2010-09-29 19:50:44 +02:00
commit e82ec3d6dd
4 changed files with 5 additions and 3 deletions

View file

@ -116,7 +116,7 @@ var Document = function(text, mode) {
this.$tabSize = 4;
this.setTabSize = function(tabSize) {
if (this.$tabSize === tabSize) return;
if (isNaN(tabSize) || this.$tabSize === tabSize) return;
this.modified = true;
this.$tabSize = tabSize;

View file

@ -482,7 +482,7 @@ var Editor = function(renderer, doc) {
};
this.getReadOnly = function() {
return this.readOnly;
return this.$readOnly;
};
this.removeRight = function() {

View file

@ -57,6 +57,8 @@ var VirtualRenderer = function(container) {
column : 0
};
this.showInvisibles = false;
this.$drawCallbacks = [];
this.$updatePrintMargin();

View file

@ -123,7 +123,7 @@ var Text = function(parentEl) {
var lineElement = lineElements[i - layerConfig.firstRow];
lineElement.innerHTML = html.join("");
};
}
};
this.$scrollLines = function(oldConfig, config) {