fix typo
This commit is contained in:
parent
31191072f3
commit
b17f8d533a
1 changed files with 2 additions and 3 deletions
|
|
@ -91,7 +91,6 @@ function LineWidgets(session) {
|
||||||
editor.renderer.on("afterRender", this.renderWidgets);
|
editor.renderer.on("afterRender", this.renderWidgets);
|
||||||
};
|
};
|
||||||
this.detach = function(e) {
|
this.detach = function(e) {
|
||||||
console.log("detach", this.session.getLength(), e);
|
|
||||||
if (e && e.session == this.session)
|
if (e && e.session == this.session)
|
||||||
return; // sometimes attach can be called before setSession
|
return; // sometimes attach can be called before setSession
|
||||||
var editor = this.editor;
|
var editor = this.editor;
|
||||||
|
|
@ -114,7 +113,7 @@ function LineWidgets(session) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.updateOnChange = function(e) {
|
this.updateOnChange = function(e) {
|
||||||
var cells = this.session.lineWidget;
|
var cells = this.session.lineWidgets;
|
||||||
if (!cells) return;
|
if (!cells) return;
|
||||||
|
|
||||||
var delta = e.data;
|
var delta = e.data;
|
||||||
|
|
@ -132,7 +131,7 @@ function LineWidgets(session) {
|
||||||
this.$updateRows();
|
this.$updateRows();
|
||||||
} else {
|
} else {
|
||||||
var args = Array(len);
|
var args = Array(len);
|
||||||
args.unshift(startRow + 1, 0);
|
args.unshift(startRow, 0);
|
||||||
cells.splice.apply(cells, args);
|
cells.splice.apply(cells, args);
|
||||||
this.$updateRows();
|
this.$updateRows();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue