Skip to content

Commit 858911a

Browse files
committed
Merge pull request jquery#70 from AliciaLippert/master
API Doc: Quick Fixes
2 parents 2ff9ad6 + 6920771 commit 858911a

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

entries/vmousedown.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<title>vmousedown</title>
44
<desc>Virtualized mousedown event handler.</desc>
55
<longdesc>
6-
<p>The jQuery Mobile <code>vmousedown</code> event handler simulates the "onmousedown" event handler on mobile devices. This event is fired on the initial touch of the screen on the device.</p>
6+
<p>The jQuery Mobile <code>vmousedown</code> event handler simulates the "onmousedown" event handler on mobile devices.</p>
77
<p style="font-style: italic;">The idea behind virtualized mouse events is to translate touch events into mouse events to compensate for the missing mouse event triggers. Developers should be aware that these virtualized mouse events will not prevent any synthetic mouse events from being triggered inside the browser after a touch event. If a mouse-type device is used on the system, the virtualized mouse events are dispatched at the same time as the normal mouse events.</p>
88

99
<xi:include href="../includes/core-extension-desc.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
1010
<pre>
1111
<code><![CDATA[
12-
$(function(){
13-
$(document).on("vmousedown", "p", function(){
14-
$(this).append('<span style="color:#00F;">Mouse down.</span>');
12+
$( function (){
13+
$( document ).on( "vmousedown", "p", function(){
14+
$( this ).append( '<span style="color:#00F;">Mouse down.</span>' );
1515
});
1616
]]></code>
1717
</pre>

entries/vmousemove.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
<xi:include href="../includes/core-extension-desc.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
1010
<pre>
1111
<code><![CDATA[
12-
$("#target").mousemove(function(event) {
13-
var msg = "Handler for .mousemove() called at ";
12+
$( document ).on ( "vmousemove", "#target", function ( event ) {
13+
var msg = "Handler for .vmousemove() called at ";
1414
msg += event.pageX + ", " + event.pageY;
15-
$("#log").append("<div>" + msg + "</div>");
15+
$( "#log" ).append( "<div>" + msg + "</div>" );
1616
});
1717
]]></code>
1818
</pre>

entries/vmouseout.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<title>vmouseout</title>
44
<desc>Virtualized mouseout event handler.</desc>
55
<longdesc>
6-
<p>The jQuery Mobile <code>vmouseout</code> event handler simulates the "onmouseout" event handler on mobile devices. This event is fired on the initial touch of the screen on the device.</p>
6+
<p>The jQuery Mobile <code>vmouseout</code> event handler simulates the "onmouseout" event handler on mobile devices.</p>
77
<p style="font-style: italic;">The idea behind virtualized mouse events is to translate touch events into mouse events to compensate for the missing mouse event triggers. Developers should be aware that these virtualized mouse events will not prevent any synthetic mouse events from being triggered inside the browser after a touch event. If a mouse-type device is used on the system, the virtualized mouse events are dispatched at the same time as the normal mouse events.</p>
88

99
<xi:include href="../includes/core-extension-desc.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
1010
<pre>
1111
<code><![CDATA[
12-
$(function(){
13-
$(document).on("vmouseout", "p", function(){
14-
$(this).append('<span style="color:#00F;">Mouse out.</span>');
12+
$( function () {
13+
$( document ).on( "vmouseout", "p", function(){
14+
$( this ).append ( '<span style="color:#00F;">Mouse out.</span>' );
1515
});
1616
]]></code>
1717
</pre>

resources/vmousedown/example1.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<body>
1212
<p>Touch here, move up and down to see what happens.</p>
1313
<script>
14-
$(function(){
15-
$(document).on("vmousedown", "p", function(){
16-
$(this).append('<span style="color:#00F;">Mouse down.</span>');
14+
$( function(){
15+
$( document ).on( "vmousedown", "p", function(){
16+
$( this ).append( '<span style="color:#00F;">Mouse down.</span>' );}
1717
});
1818
</script>
1919
</body>

resources/vmousemove/example1.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
</div>
1818
<div id="log"></div>
1919
<script>
20-
$("#target").mousemove(function(event) {
21-
var msg = "Handler for .mousemove() called at ";
20+
$( document ).on ( "vmousemove", "#target", function(event) {
21+
var msg = "Handler for .vmousemove() called at ";
2222
msg += event.pageX + ", " + event.pageY;
23-
$("#log").append("<div>" + msg + "</div>");
23+
$( "#log" ).append( "<div>" + msg + "</div>" );
2424
});
2525
</script>
2626
</body>

resources/vmouseout/example1.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<body>
1212
<p>Touch here, move up and down to see what happens.</p>
1313
<script>
14-
$(function(){
15-
$(document).on("vmouseout", "p", function(){
16-
$(this).append('<span style="color:#00F;">Mouse out.</span>');
14+
$( function(){
15+
$( document ).on( "vmouseout", "p", function(){
16+
$( this ).append( '<span style="color:#00F;">Mouse out.</span>' );}
1717
});
1818
</script>
1919
</body>

0 commit comments

Comments
 (0)