Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GarrettS/403497 to your computer and use it in GitHub Desktop.
Save GarrettS/403497 to your computer and use it in GitHub Desktop.
- return !!(node && method in node && node[method].apply);
1079 + return !!(node && method in node &&
1080 + (typeof node[method] === 'function' ||
1081 + String(node[method]).indexOf('function') === 1)); // IE reports as object, prepends space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment