modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
14 lines (11 loc) • 317 B
JavaScript
define(['Modernizr', 'modElem'], function(Modernizr, modElem) {
var mStyle = {
style: modElem.elem.style
};
// kill ref for gc, must happen before mod.elem is removed, so we unshift on to
// the front of the queue.
Modernizr._q.unshift(function() {
delete mStyle.style;
});
return mStyle;
});