Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit f445510

Browse files
IE seems to be throwing some errors when setting values it doesn't understand.
1 parent 2a1a71c commit f445510

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/eCSStender.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,8 +2104,10 @@ License: MIT License (see homepage)
21042104
property = camelize( property );
21052105
if ( el.style[property] !== UNDEFINED )
21062106
{
2107-
// set it
2108-
el.style[property] = value[0];
2107+
// attempt to set it
2108+
try {
2109+
el.style[property] = value[0];
2110+
} catch(e) {}
21092111
// get it back
21102112
val = zero_out( el.style[property] );
21112113
// test

0 commit comments

Comments
 (0)