|
|
@@ -48,8 +48,7 @@ const DOMEmitterMixin = extend( {}, EmitterMixin, {
|
|
|
*
|
|
|
* @method ui.DOMEmitterMixin#listenTo
|
|
|
*/
|
|
|
- listenTo() {
|
|
|
- const args = Array.prototype.slice.call( arguments );
|
|
|
+ listenTo( ...args ) {
|
|
|
const emitter = args[ 0 ];
|
|
|
|
|
|
// Check if emitter is an instance of DOM Node. If so, replace the argument with
|
|
|
@@ -79,8 +78,7 @@ const DOMEmitterMixin = extend( {}, EmitterMixin, {
|
|
|
*
|
|
|
* @method ui.DOMEmitterMixin#stopListening
|
|
|
*/
|
|
|
- stopListening() {
|
|
|
- const args = Array.prototype.slice.call( arguments );
|
|
|
+ stopListening( ...args ) {
|
|
|
const emitter = args[ 0 ];
|
|
|
|
|
|
// Check if emitter is an instance of DOM Node. If so, replace the argument with corresponding ProxyEmitter.
|