javascript - Difference between dojo/on and dojo/aspect -
in dojo javascript library, dojo/on , dojo/aspect used functions listen events.
however don't see how differ 1 another. can explain when use on , when use aspect?
dojo/on
used listening events. dojo/aspect
used intercept calls javascript functions.
with aspect, can intercept function call , before function call, after, or both. events, being notified occurred.
technically, if target object not domnode, dojo/on
ends calling aspect.after(...)
in <=1.6, there not distinction , dojo.connect
used. functions used notify event occurred , there still remnants of in code base. example using on click event on dijit/button
.
dojo/evented
http://dojotoolkit.org/reference-guide/1.9/dojo/evented.html
Comments
Post a Comment