prefix privates with $ instead of _
This commit is contained in:
parent
1b37c1c6f2
commit
cd27cb7554
13 changed files with 172 additions and 172 deletions
|
|
@ -5,8 +5,8 @@ ace.layer.Text = function(parentEl) {
|
|||
this.element.className = "layer text-layer";
|
||||
parentEl.appendChild(this.element);
|
||||
|
||||
this._measureSizes();
|
||||
this._tabString = " ";
|
||||
this.$measureSizes();
|
||||
this.$tabString = " ";
|
||||
};
|
||||
|
||||
(function() {
|
||||
|
|
@ -23,7 +23,7 @@ ace.layer.Text = function(parentEl) {
|
|||
return this.characterWidth;
|
||||
};
|
||||
|
||||
this._measureSizes = function() {
|
||||
this.$measureSizes = function() {
|
||||
var measureNode = document.createElement("div");
|
||||
var style = measureNode.style;
|
||||
style.width = style.height = "auto";
|
||||
|
|
@ -45,7 +45,7 @@ ace.layer.Text = function(parentEl) {
|
|||
};
|
||||
|
||||
this.setTabSize = function(tabSize) {
|
||||
this._tabString = new Array(tabSize+1).join(" ");
|
||||
this.$tabString = new Array(tabSize+1).join(" ");
|
||||
};
|
||||
|
||||
this.updateLines = function(layerConfig, firstRow, lastRow) {
|
||||
|
|
@ -83,7 +83,7 @@ ace.layer.Text = function(parentEl) {
|
|||
.replace(/&/g, "&")
|
||||
.replace(/</g, "<")
|
||||
//.replace(/\t/g, "‣ ")
|
||||
.replace(/\t/g, this._tabString)
|
||||
.replace(/\t/g, this.$tabString)
|
||||
.replace(/\s/g, " ");
|
||||
|
||||
if (token.type !== "text") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue