UNPKG

ractive

Version:

Next-generation DOM manipulation

14 lines (11 loc) 325 B
export default function ( component ) { var ancestor, query; // If there's a live query for this component type, add it ancestor = component.root; while ( ancestor ) { if ( query = ancestor._liveComponentQueries[ '_' + component.name ] ) { query.push( component.instance ); } ancestor = ancestor._parent; } }