From 77f33aeb4f12b7aa105b51d1a3414a393a841252 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Fri, 4 Jan 2013 18:41:59 +0200 Subject: [PATCH] fieldcontain and link: Cannot use $.mobile namespace here because these files do not depend on core --- js/jquery.mobile.fieldContain.js | 2 +- js/jquery.mobile.links.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.fieldContain.js b/js/jquery.mobile.fieldContain.js index f85a779a961..daf66e70bad 100644 --- a/js/jquery.mobile.fieldContain.js +++ b/js/jquery.mobile.fieldContain.js @@ -19,7 +19,7 @@ $.fn.fieldcontain = function( options ) { }; //auto self-init widgets -$.mobile.document.bind( "pagecreate create", function( e ) { +$( document ).bind( "pagecreate create", function( e ) { $( ":jqmData(role='fieldcontain')", e.target ).jqmEnhanceable().fieldcontain(); }); diff --git a/js/jquery.mobile.links.js b/js/jquery.mobile.links.js index dd0bfda76bb..a3bfdbae177 100644 --- a/js/jquery.mobile.links.js +++ b/js/jquery.mobile.links.js @@ -8,7 +8,7 @@ define( [ "jquery" ], function( $ ) { //>>excludeEnd("jqmBuildExclude"); (function( $, undefined ) { -$.mobile.document.bind( "pagecreate create", function( e ) { +$( document ).bind( "pagecreate create", function( e ) { //links within content areas, tests included with page $( e.target )