can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
18 lines (16 loc) • 436 B
JavaScript
steal('can/util', 'can/map/bubble.js', function(can) {
var bubble = can.bubble;
return can.extend({}, bubble, {
childrenOf: function (parentMap, eventName) {
if(parentMap._nestedReference) {
parentMap._nestedReference.each(function (child, ref) {
if (child && child.bind) {
bubble.toParent(child, parentMap, ref(), eventName);
}
});
} else {
bubble._each.apply(this, arguments);
}
}
});
});