jquery , find the event handler,找到jquery中的event handler

找到

dispatch: function (e) {
            e = b.event.fix(e);
            var n, r, i, s, o, u = [],
                a = d.call(arguments),
                f = (b._data(this, "events") || {})[e.type] || [],
                l = b.event.special[e.type] || {};
            a[0] = e, e.delegateTarget = this;
            if (l.preDispatch && l.preDispatch.call(this, e) === !1) return;
            u = b.event.handlers.call(this, e, f), n = 0;
            while ((s = u[n++]) && !e.isPropagationStopped()) {
                e.currentTarget = s.elem, o = 0;
                while ((i = s.handlers[o++]) && !e.isImmediatePropagationStopped())
                    //if (!e.namespace_re || e.namespace_re.test(i.namespace)) e.handleObj = i, e.data = i.data, r = ((b.event.special[i.origType] || {}).handle || i.handler).apply(s.elem, a), r !== t && (e.result = r) === !1 && (e.preventDefault(), e.stopPropagation());
                    if (!e.namespace_re || e.namespace_re.test(i.namespace))
                    {
                        console.log(enent.dispathc;beginning of invoking event handler);
                        e.handleObj = i;
                        e.data = i.data;
                        var _tmp=((b.event.special[i.origType] || {}).handle || i.handler);
              //begin , add following code Fragment
if(jQuery(strong,s.elem).text()==dd) { console.log(event fired); //add your breakpoint here, while the breakpoint is fired, input _temp in console and press enter, now you can see your handler function, click the link on the right bottom cornor to jump into the function }
              //end r
= _tmp.apply(s.elem, a); r !== t && (e.result = r) === !1 && (e.preventDefault(), e.stopPropagation()); } } return l.postDispatch && l.postDispatch.call(this, e), e.result; }

 

 

 

jquery , find the event handler,找到jquery中的event handler,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。