Skip to content

Commit

Permalink
Merge branch 'supports' of https://github.com/Modernizr/Modernizr int…
Browse files Browse the repository at this point in the history
…o supports
  • Loading branch information
stucox committed May 14, 2013
2 parents edd7b9c + 7ab17c1 commit 50bbbf6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/testProps.js
Expand Up @@ -56,7 +56,10 @@ define(['contains', 'mStyle', 'createElement', 'nativeTestProps', 'is'], functio

// If value to test has been passed in, do a set-and-check test
if (!skipValueTest && !is(value, 'undefined')) {
mStyle.style[prop] = value;
// Needs a try catch block because of IE
try {
mStyle.style[prop] = value;
} catch (e) {}

if (mStyle.style[prop] != before) {
cleanElems();
Expand Down

0 comments on commit 50bbbf6

Please sign in to comment.