can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
25 lines (24 loc) • 685 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*/
var can = require('../../util/util.js');
require('../bubble.js');
var bubble = can.bubble;
module.exports = 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);
}
}
});