微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Bubble

程序名称:Bubble

授权协议: 未知

操作系统: 未知

开发语言:

Bubble 介绍

This plugin adds bubbling
functionality to jQuery. The code is similar to jQuery.fn.trigger’s because
it’s meant to extend it. It also generates it’s own event object, that will
remain untouched through the bubbling, meaning it’s safe to attach attributes
to it and grab them with the ancestors while the event bubbles up.
I tried to use jQuery’s core functions as much as possible, but most functions
I needed were not compatible, and would destroy the custom event object, still
the code remains short.

NOTES:

  • jQuery.Bubble 1.0 was tested with jQuery 1.3.1 and it’s compatible with it’s event system.
  • jQuery.Bubble 1.2 and further versions will stick to the new system(1.2 ‘s).
  • There’re two versions, the regular (async) and the synchronic version. I’m not sure which one works better, I suppose the asynchronic one resembles more to the browser’s native (bubbling) behavior, so I’d use that one. Please let me kNow if you test them.

Bubble 官网

http://plugins.jquery.com/project/Bubble

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐