Add a deprecation warning to non-string params for #htmlSpecialChars
Revert change from ff74e0ff
This commit is contained in:
parent
e272465f6c
commit
a8d0110e07
|
@ -459,7 +459,9 @@ Zotero.Utilities = {
|
||||||
* @return {String}
|
* @return {String}
|
||||||
*/
|
*/
|
||||||
"htmlSpecialChars":function(str) {
|
"htmlSpecialChars":function(str) {
|
||||||
if (str !== undefined && typeof str != 'string') {
|
if (str && typeof str != 'string') {
|
||||||
|
Zotero.debug('#htmlSpecialChars: non-string arguments are deprecated. Update your code',
|
||||||
|
1, undefined, true);
|
||||||
str = str.toString();
|
str = str.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user