Is there any event before the changePage method call?

Is there any event before the changePage method call?

I need create my data-role='page' element dynamically before the changePage method called.

JQM has bind both $('a[href]').click and the 'hashchange' events.

And I bind my create method to these two events too. the 'click' event works now but 'hashchange' invoked after JQM's.

What can I do? or should JQM trigger a 'beforePageChange' event in the changePage method?