diff --git a/chrome/chromeFiles/content/scholar/itemPane.js b/chrome/chromeFiles/content/scholar/itemPane.js
index c4c5a3638..26464d9e9 100644
--- a/chrome/chromeFiles/content/scholar/itemPane.js
+++ b/chrome/chromeFiles/content/scholar/itemPane.js
@@ -90,7 +90,7 @@ ScholarItemPane = new function()
{
_itemBeingEdited = thisItem;
- _loaded = new Array(5);
+ _loaded = {};
loadPane(_tabs.selectedIndex);
}
@@ -99,7 +99,9 @@ ScholarItemPane = new function()
{
//Scholar.debug('Loading item pane ' + index);
if(_loaded[index])
+ {
return;
+ }
_loaded[index] = true;
// Info pane
diff --git a/chrome/chromeFiles/content/scholar/itemPane.xul b/chrome/chromeFiles/content/scholar/itemPane.xul
index 229215294..0c913a96d 100644
--- a/chrome/chromeFiles/content/scholar/itemPane.xul
+++ b/chrome/chromeFiles/content/scholar/itemPane.xul
@@ -24,7 +24,7 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
+