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

Commit

Permalink
bound widgets to the "enhance" event too, which can now be called on …
Browse files Browse the repository at this point in the history
…an arbitrary parent element to trigger enhancements on child HTML.
  • Loading branch information
scottjehl committed Jun 9, 2011
1 parent b62a510 commit df92fbd
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion js/jquery.mobile.buttonMarkup.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ var attachEvents = function() {

//links in bars, or those with data-role become buttons
//auto self-init widgets
$( document ).bind( "pagecreate", function( e ){
$( document ).bind( "pagecreate enhance", function( e ){

var exclude = ".ui-btn, :jqmData(role='none'), :jqmData(role='nojs')";

Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.collapsible.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
( function( $, undefined ) {

//auto self-init widgets
$( document ).bind( "pagecreate", function( e ){
$( document ).bind( "pagecreate enhance", function( e ){
$( "jqmData(role='collapsible')", e.target ).collapsible();
});

Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.controlGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(function($, undefined ) {

//auto self-init widgets
$( document ).bind( "pagecreate", function( e ){
$( document ).bind( "pagecreate enhance", function( e ){
$( ":jqmData(role='controlgroup')", e.target ).controlgroup();
});

Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.fieldContain.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(function($, undefined ) {

//auto self-init widgets
$( document ).bind( "pagecreate", function( e ){
$( document ).bind( "pagecreate enhance", function( e ){
$( ":jqmData(role='fieldcontain')", e.target ).fieldcontain();
});

Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.forms.button.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(function($, undefined ) {

//auto self-init widgets
$( document ).bind( "pagecreate", function( e ){
$( document ).bind( "pagecreate enhance", function( e ){
$( "button, [type='button'], [type='submit'], [type='reset'], [type='image']", e.target )
.not( ":jqmData(role='none'), :jqmData(role='nojs')" )
.button();
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.forms.checkboxradio.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(function($, undefined ) {

//auto self-init widgets
$( document ).bind( "pagecreate", function( e ){
$( document ).bind( "pagecreate enhance", function( e ){
$( "input[type='checkbox'],input[type='radio']", e.target )
.not( ":jqmData(role='none'), :jqmData(role='nojs')" )
.checkboxradio();
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.forms.select.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(function($, undefined ) {

//auto self-init widgets
$( document ).bind( "pagecreate", function( e ){
$( document ).bind( "pagecreate enhance", function( e ){
$( "select:not(:jqmData(role='slider'))", e.target )
.not( ":jqmData(role='none'), :jqmData(role='nojs')" )
.selectmenu();
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.forms.slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(function($, undefined ) {

//auto self-init widgets
$( document ).bind( "pagecreate", function( e ){
$( document ).bind( "pagecreate enhance", function( e ){

var nativeSel = ":jqmData(role='none'), :jqmData(role='nojs')";

Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.forms.textinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(function($, undefined ) {

//auto self-init widgets
$( document ).bind( "pagecreate", function( e ){
$( document ).bind( "pagecreate enhance", function( e ){
$( "input[type='text'], input[type='search'], input[type='number'], input[type='password'], textarea", e.target )
.not( ":jqmData(role='none'), :jqmData(role='nojs')" )
.textinput();
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.listview.filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$.mobile.listview.prototype.options.filter = false;
$.mobile.listview.prototype.options.filterPlaceholder = "Filter items...";

$( ":jqmData(role='listview')" ).live( "listviewcreate", function() {
$( ":jqmData(role='listview')" ).live( "listviewcreate enhance", function() {
var list = $( this ),
listview = list.data( "listview" );

Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.listview.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(function($, undefined ) {

//auto self-init widgets
$( document ).bind( "pagecreate", function( e ){
$( document ).bind( "pagecreate enhance", function( e ){
$( ":jqmData(role='listview')", e.target ).listview();
});

Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(function($, undefined ) {

//auto self-init widgets
$( document ).bind( "pagecreate", function( e ){
$( document ).bind( "pagecreate enhance", function( e ){
$( ":jqmData(role='navbar')", e.target ).navbar();
});

Expand Down

0 comments on commit df92fbd

Please sign in to comment.