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.stopPropagation();
|
||||||
e.stopImmediatePropagation();
|
e.stopImmediatePropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
const args = offsetMap[e.which];
|
||||||
if (e.shiftKey) {
|
if (e.shiftKey) {
|
||||||
this._scaleEditedNote(...offsetMap[e.which]);
|
this._scaleEditedNote(...args);
|
||||||
} else {
|
} else {
|
||||||
this._moveEditedNote(...offsetMap[e.which]);
|
this._moveEditedNote(...args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -366,8 +366,8 @@ class TagInputControl extends events.EventTarget {
|
||||||
}, response => {
|
}, response => {
|
||||||
return Promise.resolve([]);
|
return Promise.resolve([]);
|
||||||
}).then(siblings => {
|
}).then(siblings => {
|
||||||
let maxSiblingOccurrences = Math.max(
|
const args = siblings.map(s => s.occurrences);
|
||||||
1, ...siblings.map(s => s.occurrences));
|
let maxSiblingOccurrences = Math.max(1, ...args);
|
||||||
for (let sibling of siblings) {
|
for (let sibling of siblings) {
|
||||||
this._suggestions.set(
|
this._suggestions.set(
|
||||||
sibling.tag.names[0],
|
sibling.tag.names[0],
|
||||||
|
|
Loading…
Reference in New Issue