move getLength() out from for()
allow filter by parent "id": FLAX.Filter.add({parent:parent-id, id:block-id}); or parent "class": FLAX.Filter.add({parent:.parent-class, id:block-id});