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.$tabSize = 4;
this.setTabSize = function(tabSize) { this.setTabSize = function(tabSize) {
if (this.$tabSize === tabSize) return; if (isNaN(tabSize) || this.$tabSize === tabSize) return;
this.modified = true; this.modified = true;
this.$tabSize = tabSize; this.$tabSize = tabSize;

View file

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

View file

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

View file

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