dojo/aspect - .before() fires whilst .after() doesn't -
i'm having problems dojo/aspect module.
i have widget (let's phone call class 'b') function called 'test'. widget inherits base of operations class (let's phone call class 'a') implements function i'm talking about. - in function 'test' in class 'b' say:
this.inherited(arguments);
... arranges function in class 'a' called well.
then write this:
require(['dojo/aspect'], function (dojoaspect) { dojoaspect.before(basobject, 'test', function () { alert('ok then...'); }); });
note: simplify example, basobject of course of study object of b.
for reason, when utilize .before(), fires, when utilize .after(), doesn't. that's kinda crucial in case. wan't alert fire after 'test' completed in both classes. if not crucial, don't understand difference, , wan't to.
perhaps dojo core bug?
dojo aspect
No comments:
Post a Comment