You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2013/04/23 01:21:16 UTC

[jira] [Resolved] (CB-2904) Problem with jQTouch in initilization

     [ https://issues.apache.org/jira/browse/CB-2904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-2904.
----------------------------------

    Resolution: Invalid

This is not a Cordova API problem. I used jQTouch and Zepto, with *no* Cordova scripts loaded, it throws an exception (undefined). External issue.

{code}
        <script type="text/javascript" src="jqtouch.min.js"></script>
        <script type="text/javascript" src="zepto.min.js"></script>
        <script>
            window.onerror = function(err,fn,ln) {alert("ERROR:" + err + ", " + fn + ":" + ln);};
            var jQT = new $.jQTouch({});
        </script>

{code}
                
> 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, 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