Skip to content
Browse files

fieldcontain and link: Cannot use $.mobile namespace here because the…

…se files do not depend on core
  • Loading branch information...
1 parent 63b5ed9 commit 77f33aeb4f12b7aa105b51d1a3414a393a841252 @gabrielschulhof gabrielschulhof committed Jan 4, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 js/jquery.mobile.fieldContain.js
  2. +1 −1 js/jquery.mobile.links.js
View
2 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();
});
View
2 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 )

0 comments on commit 77f33ae

Please sign in to comment.
Something went wrong with that request. Please try again.