www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 675184d160c60b06ea7fb0085fadad90a76bf51f
parent e32e6aa2f549065f9b841132bfe97f7d63015ce4
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue,  7 Oct 2008 02:56:06 +0000

Firefox 3.1 compatibility fix (from Simon)


Diffstat:
Mchrome/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 @@ -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); }