Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
Guard use of console.warn for IE8
Browse files Browse the repository at this point in the history
Fixes #151
  • Loading branch information
ianobermiller committed May 14, 2015
1 parent ce0ba40 commit 0d6d4fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/prefix.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ var prefix = function (style, mode /* 'css' or 'js' */) {
var newProperty = _getPrefixedProperty(property);
if (newProperty === false) {
// Ignore unsupported properties
console.warn('Unsupported CSS property ' + property);
if (console && console.warn) {
console.warn('Unsupported CSS property ' + property);
}
return;
}

Expand Down

0 comments on commit 0d6d4fc

Please sign in to comment.