yiisoft/yii — pull request #2816 by doonfrs (2013-08-26 10:31:25+00:00)
Title: Yii Framework duplicates javascript event , when using ajax to load view which contains javascript (js:)

Yii Framework duplicates javascript event , when using ajax to load view which contains javascript (js:)

$(body).on('click',... jquery will add new script will run multiple times, +1 on each request , because it is registered on body tag which static in page

changed to
$(body).off('event','#id').on('event','#id')
to force jquery to replace the event on each ajax request