You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug can be reproduced by passing an array with a single event name to eventTarget.after and then passing the same event name to eventTarget.on: http://jsbin.com/luyubaca/2/edit?js,output
This bug can be reproduced by passing an array with a single event name to
eventTarget.after
and then passing the same event name toeventTarget.on
: http://jsbin.com/luyubaca/2/edit?js,outputThis happens because
after
passes its type toon
: https://github.com/yui/yui3/blob/master/src/event-custom/js/event-target.js#L867Then
on
passes it to_parseType
https://github.com/yui/yui3/blob/master/src/event-custom/js/event-target.js#L220and
_parseType
is wrapped withY.cached
: https://github.com/yui/yui3/blob/master/src/event-custom/js/event-target.js#L59and
Y.cached
treats arguments as strings so['eventName']
matches'eventName'
: https://github.com/yui/yui3/blob/master/src/yui/js/yui-core.js#L45The text was updated successfully, but these errors were encountered: