aboutsummaryrefslogtreecommitdiffstats
path: root/demos/autocomplete
diff options
context:
space:
mode:
Diffstat (limited to 'demos/autocomplete')
-rw-r--r--demos/autocomplete/xml.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/autocomplete/xml.html b/demos/autocomplete/xml.html
index 952357531..d86ca1563 100644
--- a/demos/autocomplete/xml.html
+++ b/demos/autocomplete/xml.html
@@ -25,7 +25,8 @@
var data = $( "geoname", xmlResponse ).map(function() {
return {
value: $( "name", this ).text() + ", " +
- ( $.trim( $( "countryName", this ).text() ) || "(unknown country)" ),
+ ( String.prototype.trim.call( $( "countryName", this ).text() ) ||
+ "(unknown country)" ),
id: $( "geonameId", this ).text()
};
}).get();