I have a simple coffeescript to process a specific selector (part_ids) ..
alert "Starting blines " + $("[id*=part_id]").length
for bl in $("[id*=part_id]")
do(bl) ->
procBl bl
procBl = (bl) ->
alert "# of children " + bl.children().length
First alert show 2 items are on the page. For loop runs -- however the procBl doesn't print the alert (it quietly exits) It appears that bl that's being iterated and passed to the function is not the correct object and I can't figure out what's it and wrong with this code -
any help is appreciated