Skip to content

Commit

Permalink
remove Modernizr._fontfaceready from the API. it was deprecated in 1.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Dec 7, 2010
1 parent 09fe568 commit 17085bf
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions modernizr.js
Expand Up @@ -578,9 +578,6 @@ window.Modernizr = (function(window,document,undefined){
head.insertBefore(style, head.firstChild);
sheet = style.sheet || style.styleSheet;

// removing it crashes IE browsers
//head.removeChild(style);

var supportAtRule = impl.hasFeature('CSS2', '') ?
function(rule) {
if (!(sheet && rule)) return false;
Expand All @@ -601,17 +598,10 @@ window.Modernizr = (function(window,document,undefined){
.replace(/\r+|\n+/g, '')
.indexOf(rule.split(' ')[0]) === 0;
};


// DEPRECATED - allow for a callback
ret._fontfaceready = function(fn){
fn(ret.fontface);
};

bool = supportAtRule('@font-face { font-family: "font"; src: "font.ttf"; }');
head.removeChild(style);
return bool;

};


Expand Down

0 comments on commit 17085bf

Please sign in to comment.