ZF-8108: addOnUNload action is needed

Issue Type: New Feature Created: 2009-10-20T13:29:12.000+0000 Last Updated: 2012-11-20T21:37:56.000+0000 Status: Open Fix version(s): Reporter: Tomek Pęszor (admirau) Assignee: None Tags: - ZendX_JQuery

Related issues: Attachments: - ZF-8108.patch


If there is an addOnLoad method, addOnUnload method would be nice too. Easy to implement, but handy.


Posted by Christopher Thomas (cwt137) on 2010-01-21T07:11:32.000+0000

Attached is a patch that includes an implementation of addOnUnload and the unit tests to support it.

Posted by Benjamin Eberlei (beberlei) on 2010-01-29T02:47:07.000+0000

Cant you just call?

<pre class="highlight">
$this->jQuery->addJavascript('$(window).unload(function() {

The addOnLoad() stuff is necessary to aggregate all on load calls into one single statement. I am not an expert, but do you need unload events on many different elements or is it mostly one event per request?

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.