CIDARLAB / 3DuF

Require spread operators instead of .apply() JS-0245
Anti-pattern
Minor
15 days ago3 years old
Use the spread operator instead of '.apply()'
1537            });
1538            // We want to make sure we pushed the listeners in the listener list rather than creating
1539            // a new one as it has already been passed to the event handlers.
1540            listeners.push.apply(listeners, moveEvent.concat(endEvent, outEvent));1541            // Text selection isn't an issue on touch devices,
1542            // so adding cursor styles can be skipped.
1543            if (event.cursor) {