client/build: work around uglifyjs bug #1308
https://github.com/mishoo/UglifyJS2/issues/1308
This commit is contained in:
parent
3436bc3ef8
commit
0df3ceb439
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue