From 675184d160c60b06ea7fb0085fadad90a76bf51f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 7 Oct 2008 02:56:06 +0000 Subject: [PATCH] Firefox 3.1 compatibility fix (from Simon) --- chrome/content/zotero/xpcom/db.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js index 26992f56dc..6589df9c2f 100644 --- a/chrome/content/zotero/xpcom/db.js +++ b/chrome/content/zotero/xpcom/db.js @@ -1010,22 +1010,16 @@ Zotero.DBConnection.prototype._getTypedValue = function (statement, i) { var type = statement.getTypeOfIndex(i); switch (type) { case statement.VALUE_TYPE_INTEGER: - var func = statement.getInt64; - break; + return statement.getInt64(i); case statement.VALUE_TYPE_TEXT: - var func = statement.getUTF8String; - break; + return statement.getUTF8String(i); case statement.VALUE_TYPE_NULL: return null; case statement.VALUE_TYPE_FLOAT: - var func = statement.getDouble; - break; + return statement.getDouble(i); case statement.VALUE_TYPE_BLOB: - var func = statement.getBlob; - break; + return statement.getBlob(i); } - - return func(i); }