This is wrong. I need a better posting:
app.transitionToView(myNode, myRoute, myMethod(foo,bar));
...will frustrate you in that myMethod will run before the transistion and not as a callback afterwards. I thought I had to hack around the problem asynchronously, but I don't. Again, this is of dojox/app 1.9. What is above is basically the same as:
app.transitionToView(myNode, myRoute, (function() {
myMethod(foo,bar)
})());
...while in the following circumstance the function won't be triggered at all!
app.transitionToView(myNode, myRoute, function() {
myMethod(foo,bar)
});
I'll still digging. More soon.
No comments:
Post a Comment