[ 
https://issues.apache.org/jira/browse/CB-2904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13639128#comment-13639128
 ] 

Roberto commented on CB-2904:
-----------------------------

Hi Shazron!
Got it working... Well it was simple btw.
I've create a global variable:

 var jQT = null;

In my init.js file prior to call the jQT initialization INSIDE the 
ondeviceready function.
So the jQT object it's correctly initialized and seen on all .js code (globally 
in app).
I dunno but something it's changed in cordova.ios.js that make initialization 
of jQT unstable with jQuery.
Thanks a lot! Ciao
Rob
                
> Problem with jQTouch in initilization
> -------------------------------------
>
>                 Key: CB-2904
>                 URL: https://issues.apache.org/jira/browse/CB-2904
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.5.0
>         Environment: Mac OSx Lion, iOS 6.1, jQuery 1.7.2, jQTouch version 1 
> beta 4 (https://github.com/senchalabs/jQTouch), http://jqtjs.com/
>            Reporter: Roberto
>            Assignee: Shazron Abdullah
>             Fix For: 2.7.0
>
>
> Hi There,
> With version 2.5.0 (i can't report for versions between 2.2 and 2.4 since 
> i've upgraded from 2.2 to 2.5 directly) jQTouch seems to not initialize 
> correclty.
> Normally jQTouch it's initialized with:
> {code}
> var jQT = new $.jQTouch({});
> {code}
> Outside the:
> {code}
> document.addEventListener("deviceready", onDeviceReady, true);
> // PhoneGap is ready
> function onDeviceReady() {
>   dosomething();
> }
> {code}
> Now it's not working the app hang on splashscreen, if we put the 
> initialization inside the "onDeviceReady" the app start but the global jQT 
> object it's not seen inside the code.
> I've been suggested by Shazron to file a bug here.
> Thanks a lot Ciao
> Rob

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to