dojo / core

:rocket: Dojo 2 - language helpers and utilities.
http://dojo.io
Other
213 stars 62 forks source link

Evented is bloated #379

Closed agubler closed 6 years ago

agubler commented 6 years ago

Enhancement

The Evented api is reasonable however the existing implementation comes with a lot of bloat that doesn’t seem to be required stemming from its use of core/aspect rather than just maintaining an array of registered functions against events. This adds quite a lot of unnecessary kbs for packages that use Evented so we should look to reduce this.

Package Version:

Code

Expected behavior:

Actual behavior: