Feature detection within a jQuery plugin?
Is it possible to add somet开发者_如何学Gohing like Modernizr into your own plugin? I'd like to feature test for certain CSS3 properties without reinventing an already fantastic wheel.
Just make Modernizr a pre-requisite for your plugin. Some plugins require the jQuery cookie plugin, for example, to operate correctly. This is just a different form of this situation.
精彩评论