summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Bartelmeß <mba@fourplusone.de>2012-04-05 22:26:39 +0200
committerMatthias Bartelmeß <mba@fourplusone.de>2012-04-05 22:26:39 +0200
commit9b1536ac107791925a4c76799e19fc88c8ef690b (patch)
treee4d4d11509e722448b023346a0ef04190ac46353 /src
parentff9e4070921867031fec50f794ce44404df5dc1e (diff)
downloadetherpad-lite-9b1536ac107791925a4c76799e19fc88c8ef690b.zip
fixing 'rep is not defined' error
Diffstat (limited to 'src')
-rw-r--r--src/static/js/AttributeManager.js4
1 files 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);
},