ZF-5185: jQuery Helper Utility does not provide a method to clear onLoad Actions
Description
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 +}
Comments
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 57.2.1.3.3.