Permalink
Browse files

Demos: Replaced pageinit by pagecreate

Fixes gh-6954
  • Loading branch information...
jaspermdegroot committed Jan 16, 2014
1 parent 18a3cd6 commit cb6a2c174de56ea37bcb17ef7948c3410376825f
@@ -12,7 +12,7 @@
<script src="../_assets/js/"></script>
<script src="../../js/"></script>
<script>
$( document ).on( "pageinit", "#myPage", function() {
$( document ).on( "pagecreate", "#myPage", function() {
$( "#autocomplete" ).on( "filterablebeforefilter", function ( e, data ) {
var $ul = $( this ),
$input = $( data.input ),
@@ -21,7 +21,7 @@
* Geolocation documentation: http://dev.w3.org/geo/api/spec-source.html
*/
$( document ).on( "pageinit", "#map-page", function() {
$( document ).on( "pagecreate", "#map-page", function() {
var defaultLatLng = new google.maps.LatLng(34.0983425, -118.3267434); // Default to Hollywood, CA when no geolocation support
if ( navigator.geolocation ) {
@@ -53,7 +53,7 @@ <h1>same page transitions</h1>
</div><!-- /footer 1 -->
<script>
$('#page1').on('pageinit', function() {
$('#page1').on('pagecreate', function() {
$('a').bind('click', function(e) {
var trans = $(this).text() || 'none',

0 comments on commit cb6a2c1

Please sign in to comment.