Fix a couple JS strict warnings

This commit is contained in:
Dan Stillman 2010-08-30 19:18:33 +00:00
parent 6ba90d53b3
commit 43a6d5190b
2 changed files with 3 additions and 2 deletions

View file

@ -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]);
}

View file

@ -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;