after unload, remove list pages from memory

This commit is contained in:
rolux 2010-09-07 19:36:21 +02:00
parent 0aee82a57c
commit 833fa845d6
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) {