Better debugging for Zotero.Utilities.trim() error

This commit is contained in:
Dan Stillman 2009-03-14 22:17:23 +00:00
parent f0def44c29
commit 95e3bb7a3a

View file

@ -84,6 +84,7 @@ Zotero.Utilities.prototype.cleanAuthor = function(author, type, useComma) {
*/
Zotero.Utilities.prototype.trim = function(/**String*/ s) {
if (typeof(s) != "string") {
Zotero.debug(s);
throw "trim: argument must be a string";
}