after unload, remove list pages from memory

This commit is contained in:
rolux 2010-09-07 19:36:21 +02:00
parent fe1232618c
commit 34179ec451
2 changed files with 6 additions and 2 deletions

View File

@ -154,7 +154,7 @@ Lists
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(32, 32, 32)), color-stop(1, rgb(0, 0, 0)));
}
.OxThemeModern .OxIconList .OxItem > .OxIcon img.OxLoading {
border-color: rgb(16, 16, 16);
border-color: rgb(48, 48, 48);
}
.OxThemeModern .OxIconList .OxItem > .OxReflection > div {
background: -moz-linear-gradient(top, rgba(16, 16, 16, 0.75), rgba(16, 16, 16, 1));

View File

@ -5843,6 +5843,7 @@ requires
key_home: scrollToLast,
key_pagedown: scrollPageDown,
key_pageup: scrollPageUp,
key_section: preview, // fixme: firefox gets keyCode 0 when pressing space
key_space: preview
},
listMargin: self.options.type == 'text' ? 0 : 8, // 2 x 4 px padding
@ -6447,7 +6448,10 @@ requires
Ox.print('unloadPage', page)
Ox.print('self.$pages', self.$pages)
Ox.print('page not undefined', !Ox.isUndefined(self.$pages[page]))
!Ox.isUndefined(self.$pages[page]) && self.$pages[page].remove();
if (!Ox.isUndefined(self.$pages[page])) {
self.$pages[page].remove();
delete self.$pages[page];
}
}
function unloadPages(page) {