Merge branch 'master' of github.com:ajaxorg/editor

This commit is contained in:
Fabian Jakobs 2010-09-30 12:44:12 +02:00
commit 587fd2b6a0
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

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

View file

@ -67,6 +67,8 @@ var VirtualRenderer = function(container, theme) {
column : 0
};
this.showInvisibles = false;
var self = this;
this.$textLayer.addEventListener("changeCharaterSize", function() {
self.characterWidth = textLayer.getCharacterWidth();

View file

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