That's an interesting problem, Howard. I haven't used YUI 3 in this way much, but I have a lot in the "static" way, as the doc you reference mentions.
Without seeing the rest of your code the only thing I can add is to ask if you have something like:
array(array('commentids' => '1 , 23 ,45')));
in one of your php files (with your appropriate parameters)?