This commit is contained in:
nightwing 2013-09-21 22:39:30 +04:00
commit b17f8d533a

View file

@ -91,7 +91,6 @@ function LineWidgets(session) {
editor.renderer.on("afterRender", this.renderWidgets);
};
this.detach = function(e) {
console.log("detach", this.session.getLength(), e);
if (e && e.session == this.session)
return; // sometimes attach can be called before setSession
var editor = this.editor;
@ -114,7 +113,7 @@ function LineWidgets(session) {
};
this.updateOnChange = function(e) {
var cells = this.session.lineWidget;
var cells = this.session.lineWidgets;
if (!cells) return;
var delta = e.data;
@ -132,7 +131,7 @@ function LineWidgets(session) {
this.$updateRows();
} else {
var args = Array(len);
args.unshift(startRow + 1, 0);
args.unshift(startRow, 0);
cells.splice.apply(cells, args);
this.$updateRows();
}