Javascript 'unregistered'

Hi,

I’m having a problem with my widget’s javascript.

I call 2 widgets in a view. When I call the first one alone the javascript works fine, but when a call the second the JS stops working.

my first widget




$this->widget('ext.quadroHorarioUi.quadroHorarioUi',array(

  'arProvider'=>  Aula::model()->search(),

  'title'=>'Turmas Disponíveis',

  ));



Inside this widget I have;




$cs->registerScriptFile($assetsDir . '/js/handlers.js');



My second widget is a CGridView, but the same happens if i’d use another widget.

Hi,

Your widget include only


$cs->registerScriptFile($assetsDir . '/js/handlers.js');

or something yet.