First of all, I would recommend using "modern dojo" since you are still using dojo 1.8. dojo / connect is deprecated, and the dojo / aspect method is now used to "track" function calls.
So, you get something like:
require(["dojo/ready", "dojo/aspect", "dijit/registry"], function(ready, aspect, registry) { ready(function() { aspect.after(registry.byId("Container"), "resize", function() {
If you want to access the arguments passed to the resize function, call aspect.after with true as the last argument, for example:
aspect.after(registry.byId("Container"), "resize", function(changeSize, resultSize) {
source share