added two events: beforeload and load.

These are triggered on a ui-page before and after mobilize is executed on a newly loaded page.

Fixed #75
This commit is contained in:
scottjehl 2010-10-04 18:00:31 -04:00
parent 9be9ab6612
commit 113f09f6c9

View file

@ -268,6 +268,8 @@
return $el.not('[data-mobilized]').each(function(){
var $el = $(this);
$el.trigger("beforeload");
//some of the form elements currently rely on the presence of ui-page and ui-content
// classes so we'll handle page and content roles outside of the main role processing
@ -350,7 +352,8 @@
})
.find('.ui-btn-text').text(backBtnText);
$el.attr('data-mobilized', true);
$el.attr('data-mobilized', true);
$el.trigger("load");
});
};