diff --git a/src/static/js/AttributeManager.js b/src/static/js/AttributeManager.js index 2f40c4f43..0b10274d2 100644 --- a/src/static/js/AttributeManager.js +++ b/src/static/js/AttributeManager.js @@ -51,8 +51,8 @@ AttributeManager.prototype = _(AttributeManager.prototype).extend({ */ setAttributesOnRange: function(start, end, attribs) { - var builder = Changeset.builder(rep.lines.totalWidth()); - ChangesetUtils.buildKeepToStartOfRange(rep, builder, start); + var builder = Changeset.builder(this.rep.lines.totalWidth()); + ChangesetUtils.buildKeepToStartOfRange(this.rep, builder, start); ChangesetUtils.buildKeepRange(this.rep, builder, start, end, attribs, this.rep.apool); return this.applyChangeset(builder); },