开发者

jquery and hover intent - best way to disable hoverintent plugin

I have to disable the use of hoverintent plugin, however I have no control over existing source code on the page. So at the moment I'm just throwing in a brick like so:

$("ul#accordion li").hoverIntent( null )

Is there a better way to do this than passing a null inst开发者_运维知识库ead of 'real' config elements?

thanks


How about overriding the plugin? Something like:

$.fn.hoverIntent = function(){ return $(this); };
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜