UNPKG

can

Version:

MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.

25 lines (24 loc) 725 B
/*! * 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*/ 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); } } }); });