fixed defaults
This commit is contained in:
parent
ec9796f329
commit
e82ec3d6dd
4 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -482,7 +482,7 @@ var Editor = function(renderer, doc) {
|
|||
};
|
||||
|
||||
this.getReadOnly = function() {
|
||||
return this.readOnly;
|
||||
return this.$readOnly;
|
||||
};
|
||||
|
||||
this.removeRight = function() {
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@ var VirtualRenderer = function(container) {
|
|||
column : 0
|
||||
};
|
||||
|
||||
this.showInvisibles = false;
|
||||
|
||||
this.$drawCallbacks = [];
|
||||
|
||||
this.$updatePrintMargin();
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ var Text = function(parentEl) {
|
|||
|
||||
var lineElement = lineElements[i - layerConfig.firstRow];
|
||||
lineElement.innerHTML = html.join("");
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
this.$scrollLines = function(oldConfig, config) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue