Skip to content

Instantly share code, notes, and snippets.

@robertbasic
Created March 15, 2011 20:32
Show Gist options
  • Select an option

  • Save robertbasic/871412 to your computer and use it in GitHub Desktop.

Select an option

Save robertbasic/871412 to your computer and use it in GitHub Desktop.
extending dijit.tooltip
dojo.declare("app.errorTooltip", dijit.Tooltip, {
show: function() {
var elem = dojo.byId(this.connectId[0]);
if(dojo.isIE) {
elem.fireEvent('onfocus');
} else {
var e = document.createEvent("HTMLEvents");
e.initEvent('focus', false, true);
elem.dispatchEvent(e);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment