Issues

ZF-8560: remove unnecessary parameter manipulation in ZendX_JQuery_View_Helper_JQuery_Container::addJavascript()

Description

Remove all manipulation of the passed JavaScript in ZendX_JQuery_View_Helper_JQuery_Container::addJavascript($js).

Actualy this function will: * trim $js * add ; if not found as last character

Reasons: * there is no benefit to do it * this processing is taking unnecessary CPU on each request * it is not perfect, for example if the last line is JavaScript comment the ; will still be added * it is works different from Zend_View_Helper_HeadScript::addJavascript() function * passed text has to be complete and valid JavaScript which means that more addJavascript functions can't be combined

Comments

No comments to display