font-detect-js
font-detect-js copied to clipboard
Refactored version doesn't work with new jQuery
Hi there,
Refactored version (from the branch "refactored") looks very nice in terms of code. But it doesn't work with latest jQuery version.
I know that this project wasn't updated for 4 years but anyway it would be cool to add such compatibility.
Not worked piece of code is in font-detect.js:
return {
loadSWF: function() {
_loadSWF();
},
fonts: function() {
// Use when doing static publishing
//var swf = swfobject.getObjectById(_swfObjectId);
// Works with dynamic publishing
var swfObj = document.getElementById(_swfObjectId);
var fonts = swfObj.fonts();
return _filterFonts(fonts);
}
}
Could you have a look on it please? Seems not difficult to fix.
Thanks