ZF-5185: jQuery Helper Utility does not provide a method to clear onLoad Actions

Issue Type: New Feature Created: 2008-12-08T13:49:05.000+0000 Last Updated: 2008-12-09T07:32:08.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Christopher Manning (manningc) Assignee: Benjamin Eberlei (beberlei) Tags: - ZendX_JQuery

Related issues: Attachments:


methods are provided to clear javascript files and scripts but not the onload Actions. If this is for a reason, the documentation does not make it clear.

file: ZendX/JQuery/View/Helper/JQuery/Container.php

Index: Container.php

--- Container.php (revision 13093) +++ Container.php (working copy) @@ -500,6 +500,17 @@ $this->_javascriptStatements = array(); return $this; } +

  • /** + * Clear all of the registered onLoad actions + * + * @return ZendX_JQuery_View_Helper_JQuery_Container + */ + public function clearOnLoad() + { + $this->_onLoadActions = array(); + return $this; + }
  * Add a stylesheet

@@ -726,4 +737,4 @@

     return $source;

-} \ No newline at end of file +}


Posted by Benjamin Eberlei (beberlei) on 2008-12-09T00:41:24.000+0000

Fixed in trunk and will be included in next minor version.

Posted by Christopher Manning (manningc) on 2008-12-09T07:32:07.000+0000

Excuse me if you have already done this, but the documentation should be updated as well to tell about the new method at

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.