use mid for dijit type reference #3583