]>
git.r.bdr.sh - rbdr/r.bdr.sh/blob - jekyll/js/vendor/neon/stdlib/bubbling_support.js
1 Module('BubblingSupport')({
2 dispatch : function (type
, data
) {
4 var event
= CustomEventSupport
.prototype.dispatch
.call(this, type
, data
);
5 if (event
.isPropagationStopped
=== false) {
6 if (this.parent
&& this.parent
.dispatch
) {
7 data
.target
= event
.target
;
8 data
.currentTarget
= this.parent
;
9 this.parent
.dispatch(event
.type
, data
);
16 dispatch : function (type
, data
) {
19 var event
= CustomEventSupport
.prototype.dispatch
.call(this, type
, data
);
21 if (event
.isPropagationStopped
=== false && event
.bubbles
=== true) {
22 if (this.parent
&& this.parent
.dispatch
) {
23 data
.target
= event
.target
;
24 data
.currentTarget
= this.parent
;
25 this.parent
.dispatch(event
.type
, data
);