www

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

commit 43a6d5190b25b5c0ec18086f3d31bce037590314
parent 6ba90d53b3d64811a2f7a25873f00b4a1191af9b
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 30 Aug 2010 19:18:33 +0000

Fix a couple JS strict warnings


Diffstat:
Mchrome/content/zotero/xpcom/data/relations.js | 2+-
Mchrome/content/zotero/xpcom/utilities.js | 3++-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/relations.js b/chrome/content/zotero/xpcom/data/relations.js @@ -165,7 +165,7 @@ Zotero.Relations = new function () { this.eraseByURIPrefix = function (prefix) { prefix = prefix + '%'; - sql = "DELETE FROM relations WHERE subject LIKE ? OR object LIKE ?"; + var sql = "DELETE FROM relations WHERE subject LIKE ? OR object LIKE ?"; Zotero.DB.query(sql, [prefix, prefix]); } diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js @@ -506,7 +506,8 @@ Zotero.Utilities.prototype.md5 = function(strOrFile, base64) { */ // From http://rcrowley.org/2007/11/15/md5-in-xulrunner-or-firefox-extensions/ - var ascii = []; ii = hash.length; + var ascii = []; + var ii = hash.length; for (var i = 0; i < ii; ++i) { var c = hash.charCodeAt(i); var ones = c % 16;