From 9b1536ac107791925a4c76799e19fc88c8ef690b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Bartelme=C3=9F?= Date: Thu, 5 Apr 2012 22:26:39 +0200 Subject: [PATCH] fixing 'rep is not defined' error --- src/static/js/AttributeManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/static/js/AttributeManager.js b/src/static/js/AttributeManager.js index 2f40c4f4..0b10274d 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); },