Window dependant api modules do now get reinstanciated, if the window location changes

This commit is contained in:
Andreas Stöckel
2012-03-07 15:20:04 +00:00
parent c8bf9ed6ef
commit 292f18bc1a
4 changed files with 53 additions and 21 deletions

View File

@ -143,6 +143,8 @@ egw.extend('utils', egw.MODULE_GLOBAL, function() {
}
}
var uid_counter = 0;
// Create the utils object which contains references to all functions
// covered by it.
var utils = {
@ -156,6 +158,10 @@ egw.extend('utils', egw.MODULE_GLOBAL, function() {
_elem.ownerDocument.parentNode ||
_elem.ownerDocument.defaultView;
return res;
},
uid: function() {
return (uid_counter++).toString(16);
}
};