Permalink
Browse files

Check for existance of noprefix attribute, not specific values

  • Loading branch information...
jacobrask committed Jan 21, 2012
1 parent a80186f commit d1f31319debce5a1ea10b7fa82aa561810e449a7
Showing with 3 additions and 5 deletions.
  1. +2 −4 prefixfree.js
  2. +1 −1 prefixfree.min.js
View
@@ -14,9 +14,7 @@ var self = window.StyleFix = {
link: function(link) {
try {
// Ignore stylesheets with data-noprefix attribute as well as alternate stylesheets
- if(link.rel !== 'stylesheet' || !link.sheet.cssRules ||
- link.getAttribute('data-noprefix') === 'noprefix' ||
- link.getAttribute('data-noprefix') === 'true') {
+ if(link.rel !== 'stylesheet' || !link.sheet.cssRules || link.hasAttribute('data-noprefix')) {
return;
}
}
@@ -418,4 +416,4 @@ root.className += ' ' + self.prefix;
StyleFix.register(self.prefixCSS);
-})(document.documentElement);
+})(document.documentElement);
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit d1f3131

Please sign in to comment.