From 4b48ff041426d3312925b435d05bd6021e73d3bf Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 26 Aug 2006 05:33:44 +0000 Subject: [PATCH] Stop JS strict warnings from Hash.get() misses --- chrome/chromeFiles/content/scholar/xpcom/scholar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/chromeFiles/content/scholar/xpcom/scholar.js b/chrome/chromeFiles/content/scholar/xpcom/scholar.js index e8f04c2a3..971bc2ff8 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/scholar.js +++ b/chrome/chromeFiles/content/scholar/xpcom/scholar.js @@ -553,7 +553,7 @@ Scholar.Hash = function(){ } Scholar.Hash.prototype.get = function(in_key){ - return this.items[in_key]; + return this.items[in_key] ? this.items[in_key] : false; } Scholar.Hash.prototype.set = function(in_key, in_value){