From 34179ec45167cb045a72525dc571ecc2f657f6a9 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 7 Sep 2010 19:36:21 +0200 Subject: [PATCH] after unload, remove list pages from memory --- build/css/ox.ui.modern.css | 2 +- build/js/ox.ui.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build/css/ox.ui.modern.css b/build/css/ox.ui.modern.css index e17020d..d9c5ace 100644 --- a/build/css/ox.ui.modern.css +++ b/build/css/ox.ui.modern.css @@ -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)); diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 7edac0c..dd8f9af 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -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) {