How Not To Include Jquery Scrupt From Ajax Call In Renderpartial()?

I have an ajaxButton that will call an action which will renderPartial with the processOutput() set to true.

The renderPartial() will return another jquery script which is not required because the page itself already has jquery when it first loads.

How can I not include this extra jquery script?

Hmm. Where does it come from?

AFAIK Scripts are auto-included only if full layout is rendered, which is not your case because of renderPartial.

This has worked for me.

    yii::app()->clientScript->scriptMap['*.js'] = false;

    $this->renderPartial('/site/_tree', array('refreshData'=>$data), false, true);