Make compatible with Dojo.