Skip to content

Commit

Permalink
Check for existance of noprefix attribute, not specific values
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobrask committed Jan 21, 2012
1 parent a80186f commit d1f3131
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions prefixfree.js
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -418,4 +416,4 @@ root.className += ' ' + self.prefix;
StyleFix.register(self.prefixCSS);


})(document.documentElement);
})(document.documentElement);
2 changes: 1 addition & 1 deletion prefixfree.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d1f3131

Please sign in to comment.