dojo / interfaces

🚀 Dojo 2 - common interfaces and types.
http://dojo.io
Other
1 stars 14 forks source link

Allow Evented#emit(event) to be a superset of EventedObject #24

Closed kitsonk closed 8 years ago

kitsonk commented 8 years ago

Type: bug / feature

The following has been addressed in the PR:

Description:

The following now works:

evented.emit({
    type: 'foo',
    target: event
});

Where previously passing an object literal on emit would have caused a type error.

Resolves #23