开发者

Jquery/Jquery Mobile - is there an event that fires before mobileinit

开发者 https://www.devze.com 2023-04-11 11:33 出处:网络
I\'m sitting on a plugin which needs to initate some things before the Jquery Mobile mobileinit event fires (overriding some JQM functionalities)

I'm sitting on a plugin which needs to initate some things before the Jquery Mobile mobileinit event fires (overriding some JQM functionalities)

I don't really want to split up my plugin into two separate files, having to place one before Jquery-mobile.js. So I'm looking for events preceding mobileinit

I'm currently trying with DOMContentLoaded, but this is not really working.

My question: Are there any events that precede mobileinit? Can I fire this event from a .js file sitting AFTER jquery mobile.js?

Thanks for input!

EDIT: I开发者_如何学C'm trying in JSBin


no, mobileinit is the first event fired. see line number 6632 of jquery mobile RC1. You can fire your own event from some js file before jquery mobile. and do stuff there. But you cant fire this event from a .js file sitting AFTER jquery mobile.js.

0

精彩评论

暂无评论...
验证码 换一张
取 消