Better debugging for Zotero.Utilities.trim() error
This commit is contained in:
parent
f0def44c29
commit
95e3bb7a3a
1 changed files with 1 additions and 0 deletions
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue