Skip to content

Commit 608bc95

Browse files
committed
Tooltip demo: Small tweaks.
1 parent 917d2b1 commit 608bc95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

demos/tooltip/delegation-mixbag.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
});
3939
}
4040
if ( element.is( "[title]" ) ) {
41-
return $( this ).attr( "title" );
41+
return element.attr( "title" );
4242
}
4343
if ( element.is( "img" ) ) {
44-
return $( this ).attr( "alt" );
44+
return element.attr( "alt" );
4545
}
4646
}
4747
});
@@ -58,7 +58,7 @@ <h2>St. Stephen's Cathedral</h2>
5858
<h3><a href="http://maps.google.com/maps?q=vienna,+austria&z=11" data-geo="48.208174,16.373819">Vienna, Austria</a>.</h3>
5959
</div>
6060
<a href="http://en.wikipedia.org/wiki/File:Wien_Stefansdom_DSC02656.JPG">
61-
<img src="images/st-stephens.jpg" alt="St. Stephen's Cathedral">
61+
<img src="images/st-stephens.jpg" alt="St. Stephen's Cathedral" class="ui-corner-all">
6262
</a>
6363
</div>
6464

@@ -68,7 +68,7 @@ <h2>Tower Bridge</h2>
6868
<h3><a href="http://maps.google.com/maps?q=london,+england&z=11" data-geo="51.500152,-0.126236">London, England</a>.</h3>
6969
</div>
7070
<a href="http://en.wikipedia.org/wiki/File:Tower_bridge_London_Twilight_-_November_2006.jpg">
71-
<img src="images/tower-bridge.jpg" alt="Tower Bridge">
71+
<img src="images/tower-bridge.jpg" alt="Tower Bridge" class="ui-corner-all">
7272
</a>
7373
</div>
7474

0 commit comments

Comments
 (0)