func MobileInit() {
	log.Debugf("MobileInit")
	defer log.Debugf("MobileInit finished")
	jQMobile = js.Global.Get("jQuery").Get("mobile")

	jQuery(js.Global).On("resize", resizeContent)
	jQuery(js.Global).On("orentationchange", resizeContent)
	jQuery(document).On("pagecontainertransition", resizeContent)
	go resizeContent() // Just in case the screen was resized before mobileinit fired

	// Disable hash features
	jQMobile.Set("hashListeningEnabled", false)
	jQMobile.Set("pushStateEnabled", false)
	jQMobile.Get("changePage").Get("defaults").Set("changeHash", false)

	// 	DebugEvents()

	jQuery(document).One("pagecreate", func(event *jquery.Event) {
		// This should only be executed once, to initialize our "external"
		// panel. This is the kind of thing that should go in document.ready,
		// but I don't have any guarantee that document.ready will run after
		// mobileinit.
		jQuery("body>[data-role='panel']").Underlying().Call("panel").Call("enhanceWithin")
	})
}
// MobileInit is run after jQuery Mobile's 'mobileinit' event has fired
MobileInit is run after jQuery Mobile's 'mobileinit' event has fired
// MobileInit is run after jQuery Mobile ' s ' mobileinit ' event has fired
func MobileInit() {
	log.Debugf("MobileInit")
	defer log.Debugf("MobileInit finished")
	jQMobile = js.Global.Get("jQuery").Get("mobile")
	jQuery(js.Global).On("resize", resizeContent)
	jQuery(js.Global).On("orentationchange", resizeContent)
	jQuery(document).On("pagecontainertransition", resizeContent)
	go resizeContent() 
	jQMobile.Set("hashListeningEnabled", false)
	jQMobile.Set("pushStateEnabled", false)
	jQMobile.Get("changePage").Get("defaults").Set("changeHash", false)
	jQuery(document).One("pagecreate", func(event *jquery.Event) {
		jQuery("body>[data-role='panel']").Underlying().Call("panel").Call("enhanceWithin")
	})
}
func MobileInit ( ) { log . Debugf ( " " ) defer log . Debugf ( " " ) jQMobile = js . Global . Get ( " " ) . Get ( " " ) jQuery ( js . Global ) . On ( " " , resizeContent ) jQuery ( js . Global ) . On ( " " , resizeContent ) jQuery ( document ) . On ( " " , resizeContent ) go resizeContent ( ) jQMobile . Set ( " " , false ) jQMobile . Set ( " " , false ) jQMobile . Get ( " " ) . Get ( " " ) . Set ( " " , false ) jQuery ( document ) . One ( " " , func ( event * jquery . Event ) { jQuery ( " " ) . Underlying ( ) . Call ( " " ) . Call ( " " ) } ) }
MobileInit is run after jQuery Mobile's 'mobileinit' event has fired
MobileInit is run after jQuery Mobile ' s ' mobileinit ' event has fired
// Just in case the screen was resized before mobileinit fired // Disable hash features // 	DebugEvents() // This should only be executed once, to initialize our "external" // panel. This is the kind of thing that should go in document.ready, // but I don't have any guarantee that document.ready will run after // mobileinit.