Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 77f33ae

Browse files
author
Gabriel Schulhof
committed
fieldcontain and link: Cannot use $.mobile namespace here because these files do not depend on core
1 parent 63b5ed9 commit 77f33ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/jquery.mobile.fieldContain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $.fn.fieldcontain = function( options ) {
1919
};
2020

2121
//auto self-init widgets
22-
$.mobile.document.bind( "pagecreate create", function( e ) {
22+
$( document ).bind( "pagecreate create", function( e ) {
2323
$( ":jqmData(role='fieldcontain')", e.target ).jqmEnhanceable().fieldcontain();
2424
});
2525

js/jquery.mobile.links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ define( [ "jquery" ], function( $ ) {
88
//>>excludeEnd("jqmBuildExclude");
99
(function( $, undefined ) {
1010

11-
$.mobile.document.bind( "pagecreate create", function( e ) {
11+
$( document ).bind( "pagecreate create", function( e ) {
1212

1313
//links within content areas, tests included with page
1414
$( e.target )

0 commit comments

Comments
 (0)