aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/autocomplete/xml.html3
-rw-r--r--demos/tooltip/video-player.html4
2 files changed, 5 insertions, 2 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();
diff --git a/demos/tooltip/video-player.html b/demos/tooltip/video-player.html
index e1ebac24f..74db642aa 100644
--- a/demos/tooltip/video-player.html
+++ b/demos/tooltip/video-player.html
@@ -37,7 +37,9 @@
<script src="../../external/requirejs/require.js"></script>
<script src="../bootstrap.js" data-modules="button controlgroup menu effect effect-blind">
function notify( input ) {
- var msg = "Selected " + $.trim( input.data( "tooltip-title" ) || input.text() );
+ var msg = "Selected " +
+ String.prototype.trim.call(
+ input.data( "tooltip-title" ) || input.text() );
$( "<div>" )
.appendTo( document.body )
.text( msg )