开发者

jquery and hover intent - best way to disable hoverintent plugin

开发者 https://www.devze.com 2023-03-19 22:40 出处:网络
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:

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

精彩评论

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