Skip to content

Instantly share code, notes, and snippets.

@tobie
Created August 11, 2008 15:09
Show Gist options
  • Save tobie/4867 to your computer and use it in GitHub Desktop.
Save tobie/4867 to your computer and use it in GitHub Desktop.
var element = document.getElementById('foo');
try {
element.removeAttribute.apply(element, ['title']);
// using apply to simulate what Enum#invoke does.
} catch (e) {
alert(e.name + ': ' + e.message);
}
// in IE alerts: TypeError: Object doesn't support this property or method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment