mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 22:21:34 +01:00
Un-bind window resize handler in destructor
This commit is contained in:
parent
a458019490
commit
43fe37761f
@ -162,7 +162,7 @@ var et2_historylog = et2_valueWidget.extend([et2_IDataProvider],
|
|||||||
|
|
||||||
// Register a resize callback
|
// Register a resize callback
|
||||||
var self = this;
|
var self = this;
|
||||||
$j(window).resize(function() {
|
$j(window).on('resize.' +this.options.value.app + this.options.value.id, function() {
|
||||||
self.dynheight.update(function(_w, _h) {
|
self.dynheight.update(function(_w, _h) {
|
||||||
self.dataview.resize(_w, _h);
|
self.dataview.resize(_w, _h);
|
||||||
});
|
});
|
||||||
@ -173,6 +173,9 @@ var et2_historylog = et2_valueWidget.extend([et2_IDataProvider],
|
|||||||
* Destroys all
|
* Destroys all
|
||||||
*/
|
*/
|
||||||
destroy: function() {
|
destroy: function() {
|
||||||
|
// Unbind
|
||||||
|
$j(window).off('.' +this.options.value.app + this.options.value.id);
|
||||||
|
|
||||||
// Free the widgets
|
// Free the widgets
|
||||||
for(var i = 0; i < this.columns.length; i++)
|
for(var i = 0; i < this.columns.length; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user