Skip to content

Instantly share code, notes, and snippets.

@ThisIsMissEm
Created November 22, 2009 01:20
Show Gist options
  • Save ThisIsMissEm/240364 to your computer and use it in GitHub Desktop.
Save ThisIsMissEm/240364 to your computer and use it in GitHub Desktop.
dojo.dnd.isFormElement = function(e){
var t = e.target;
if(t.nodeType == 3 /*TEXT_NODE*/ || dojo.attr(t, "style") == "overflow: hidden;"){
t = t.parentNode;
}
return dojo.hasClass(t, "dijitTextBox") || " button textarea input select option ".indexOf(" " + t.tagName.toLowerCase() + " ") >= 0;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment