Fix a couple JS strict warnings
This commit is contained in:
parent
6ba90d53b3
commit
43a6d5190b
2 changed files with 3 additions and 2 deletions
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue