fixing 'rep is not defined' error

pull/599/head
Matthias Bartelmeß 2012-04-05 22:26:39 +02:00
parent ff9e407092
commit 9b1536ac10
1 changed files with 2 additions and 2 deletions

View File

@ -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);
},