fixes dojo problems, but does not unbind click and other event handlers, you have to do that on your own