can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
28 lines (27 loc) • 739 B
JavaScript
/*!
* CanJS - 2.3.34
* http://canjs.com/
* Copyright (c) 2018 Bitovi
* Mon, 30 Apr 2018 20:56:51 GMT
* Licensed MIT
*/
/*can@2.3.34#map/lazy/bubble*/
define([
'can/util/library',
'can/bubble'
], 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);
}
}
});
});