client/build: work around uglifyjs bug #1308

https://github.com/mishoo/UglifyJS2/issues/1308
This commit is contained in:
rr- 2016-09-29 11:16:18 +02:00
parent 3436bc3ef8
commit 0df3ceb439
2 changed files with 5 additions and 4 deletions

View File

@ -199,10 +199,11 @@ class SelectedState extends ActiveState {
e.stopPropagation();
e.stopImmediatePropagation();
e.preventDefault();
const args = offsetMap[e.which];
if (e.shiftKey) {
this._scaleEditedNote(...offsetMap[e.which]);
this._scaleEditedNote(...args);
} else {
this._moveEditedNote(...offsetMap[e.which]);
this._moveEditedNote(...args);
}
}
}

View File

@ -366,8 +366,8 @@ class TagInputControl extends events.EventTarget {
}, response => {
return Promise.resolve([]);
}).then(siblings => {
let maxSiblingOccurrences = Math.max(
1, ...siblings.map(s => s.occurrences));
const args = siblings.map(s => s.occurrences);
let maxSiblingOccurrences = Math.max(1, ...args);
for (let sibling of siblings) {
this._suggestions.set(
sibling.tag.names[0],