Only do the hasAttribute check if the method exists - IE falls back to the === null...
authorjeresig <jeresig@gmail.com>
Mon, 27 Sep 2010 13:19:21 +0000 (09:19 -0400)
committerjeresig <jeresig@gmail.com>
Mon, 27 Sep 2010 13:19:21 +0000 (09:19 -0400)
commita384d840d609a8ee25b8ca8769a99c33c73b022f
tree2f51a863c512c0541c993cdffe6c241406ff9803
parent157a383dae5335ef1056d3818d7dd70ac81c25a7
Only do the hasAttribute check if the method exists - IE falls back to the === null check below which allows this to still work. Follow-up to cb40495b21bcb7802f3ab6ae0f837f2bf5b385ed - thanks to @jitter for the catch.
src/attributes.js