From 67762f22cb20506b026fedf608169cfed0bcfdac Mon Sep 17 00:00:00 2001 From: Michael James Gratton Date: Mon, 30 Jan 2017 15:40:58 +1100 Subject: [PATCH] Really fix JS error calling ComposerWebView::save_selection. * ui/composer-web-view.js: Increment must be in brackets. --- ui/composer-web-view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/composer-web-view.js b/ui/composer-web-view.js index db75ca10..e52ec383 100644 --- a/ui/composer-web-view.js +++ b/ui/composer-web-view.js @@ -138,7 +138,7 @@ ComposerPageState.prototype = { this.checkCommandStack(); }, saveSelection: function() { - let id = ++this.nextSelectionId.toString(); + let id = (++this.nextSelectionId).toString(); this.selections.set(id, SelectionUtil.save()); return id; },