$("div#" + this.id).focusin(function() {
$(this).addClass("MxClient_Focus");
$(this).css("outline", "#333 auto 2px");
if ($("div#" + self.id + " div").hasClass("dijitTextBoxFocused")) {
$("div#" + self.id + " div").css("outline", "rgb(0, 0, 0) auto 0px");
}
});
$("div#" + this.id).focusout(function() {
$(this).removeClass("MxClient_Focus");
$(this).css("outline", "transparent auto 0px");
});
This widget does nicely do what is needed. However it loads jquery
https://github.com/mendix/InputReferenceSelector/blob/master/src/refkit/widget/InputRefSelector.js#L24
Looking at the use, it does make no sens to use it
Could this be removed?