Created
August 11, 2008 15:09
-
-
Save tobie/4867 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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