Converting .live to .on

Converting .live to .on

Hi, I implemented some sample code that uses jqm to swipe navigate between pages.  It was working fine, then I read an article that said .live was deprecated, and to use .on instead.  Below is my attempt, but it isn't working.  Can somebody tell me what I did wrong in my implementation?

[code]
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<title>Multi-page template</title> 
<!--link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.1/jquery.mobile-1.2.1.min.css" /-->
<link rel="stylesheet" href="js/jquery.mobile-1.3.1.min.css" />
<link rel="stylesheet" href="style/default.css" />
<script src="js/jquery-1.10.2.min.js"></script>
<!--script src="http://code.jquery.com/jquery-1.8.3.min.js"></script-->
<!--script src="http://code.jquery.com/mobile/1.2.1/jquery.mobile-1.2.1.min.js"></script-->
<script src="js/jquery.mobile-1.3.1.min.js"></script>

<script>
$(document).ready(function() {
// div.ui-page change .live to .on
$("div.ui-page").on("swipeleft", function(){
var nextpage = $(this).next('.jcPage'); //div[data-role="page"]
// swipe using id of next page if exists
if (nextpage.length > 0) {
$.mobile.changePage(nextpage, 'slide');
}
});
$("div.ui-page").on("swipeleft", function(){
var prevpage = $(this).prev('.jcPage');
// swipe using id of next page if exists
if (prevpage.length > 0) {
$.mobile.changePage(prevpage, 'slide', true);
}
});
});
</script>
</head> 

<body> 

<!-- Start of first page: #one -->
<div data-role="page" id="one" class="jcPage">

<div data-role="header">
<h1>Multi-page</h1>
</div><!-- /header -->

<div data-role="content" >
<h2>One</h2>
<p>I have an <code>id</code> of "one" on my page container. I'm first in the source order so I'm shown when the page loads.</p>
<p>This is a multi-page boilerplate template that you can copy to build your first jQuery Mobile page. This template contains multiple "page" containers inside, unlike a <a href="page-template.html"> single page template</a> that has just one page within it.</p>
<p>Just view the source and copy the code to get started. All the CSS and JS is linked to the jQuery CDN versions so this is super easy to set up. Remember to include a meta viewport tag in the head to set the zoom level.</p>
<p>You link to internal pages by referring to the <code>id</code> of the page you want to show. For example, to <a href="#two" >link</a> to the page with an <code>id</code> of "two", my link would have a <code>href="#two"</code> in the code.</p>

<h3>Show internal pages:</h3>
<p><a href="#two" data-role="button">Show page "two"</a></p>
<p><a href="#popup" data-role="button" data-rel="dialog" data-transition="pop">Show page "popup" (as a dialog)</a></p>
</div><!-- /content -->
<div data-role="footer" data-theme="d">
<h4>Page Footer</h4>
</div><!-- /footer -->
</div><!-- /page one -->


<!-- Start of second page: #two -->
<div data-role="page" id="two" data-theme="e" class="jcPage">

<div data-role="header">
<h1>Two</h1>
</div><!-- /header -->

<div data-role="content" >
<h2>Two</h2>
<p>I have an id of "two" on my page container. I'm the second page container in this multi-page template.</p>
<p>Notice that the theme is different for this page because we've added a few <code>data-theme</code> swatch assigments here to show off how flexible it is. You can add any content or widget to these pages, but we're keeping these simple.</p>
<p><a href="#one" data-direction="reverse" data-role="button" data-theme="b">Back to page "one"</a></p>
</div><!-- /content -->
<div data-role="footer">
<h4>Page Footer</h4>
</div><!-- /footer -->
</div><!-- /page two -->

<!-- Start of third page: #three -->
<div data-role="page" id="three" data-theme="e" class="jcPage" >

<div data-role="header">
<h1>Three</h1>
</div><!-- /header -->

<div data-role="content" >
<h2>Three</h2>
<p>I have an id of "three" on my page container. I'm the third page container in this multi-page template.</p>
<p>Notice that the theme is different for this page because we've added a few <code>data-theme</code> swatch assigments here to show off how flexible it is. You can add any content or widget to these pages, but we're keeping these simple.</p>
<p><a href="#one" data-direction="reverse" data-role="button" data-theme="b">Back to page "two"</a></p>
</div><!-- /content -->
<div data-role="footer">
<h4>Page Footer</h4>
</div><!-- /footer -->
</div><!-- /page three -->

</body>
</html>
[/code]