diff options
Diffstat (limited to 'demos/autocomplete/xml.html')
-rw-r--r-- | demos/autocomplete/xml.html | 3 |
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(); |