Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
AllAjxpDraggables unload event can create problem
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Nov 12, 2014
1 parent 2429dc5 commit ef9aeaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/ajaxplorer.js

Large diffs are not rendered by default.

Expand Up @@ -38,13 +38,16 @@ var AllAjxpDroppables = $A([]);
Event.observe(window, "unload", function(){
Draggables.removeObserver(timerClearObserver);
window.AllAjxpDraggables.each(function(el){
el.destroy();
try{
el.destroy();
}catch(z){}
});
window.AllAjxpDroppables.each(function(el){
Droppables.remove(el);
try{
Droppables.remove(el);
}catch(z){}
});
});

/**
* Pydio encapsulation of the Prototype Draggable
*/
Expand Down

0 comments on commit ef9aeaa

Please sign in to comment.