Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1020 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Default [PR2] Ext.application broken ?

    [PR2] Ext.application broken ?


    This basic code is not working anymore with PR2 on my computer, nothing on the console. Any ideas why ?

    Code:
    Ext.application({
        name: 'Sencha',
        launch: function() {
            alert('launched');
        }
    });

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    We'll check into it. Thank you for the report.

  3. #3
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Which Sencha Touch js file are you using? I've tested sencha-touch-all.js and sencha-touch-all-debug.js and they both work fine with this code.

  4. #4
    Sencha User
    Join Date
    Nov 2011
    Posts
    1
    Vote Rating
    0
    cristiano.meda is on a distinguished road

      0  

    Default


    I have the same problem...

  5. #5
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Default


    ST2.0PR1 clearly conflicts with phonegap somehow.
    Tried phonegap-1.1.0.js & phonegap-1.2.0.js -> crashes (with no error on both).
    Works well when phonegap is not embedded in the webpage.

  6. #6
    Sencha User
    Join Date
    Oct 2011
    Posts
    127
    Vote Rating
    0
    robl is on a distinguished road

      0  

    Exclamation


    Is this related to the bug report I filed regarding the alternate class name for Ext.application? I am using PhoneGap 1.2.0 and my app is broken too. I'm debugging it now to figure out what happened...

    http://www.sencha.com/forum/showthre...-name-conflict

  7. #7
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Default


    It seems that Phonegap can't fire "deviceready" event that PR2 requires for starting up. Quite strange.
    A quick fix can be to replace l.8846 (debug-w-comments) from :
    Code:
    if (Ext.browser.is.PhoneGap) {
    to :
    Code:
    if (false && Ext.browser.is.PhoneGap) {
    We need sth smarter though...

  8. #8
    Sencha User
    Join Date
    Oct 2011
    Posts
    127
    Vote Rating
    0
    robl is on a distinguished road

      0  

    Lightbulb


    PhoneGap 1.2.0 seems to fire that just fine. Do you use something like this:

    Code:
    Ext.setup({
        viewport: {
     autoMaximize: false
        },
        onReady: function() {
     console.log("onReady:");
     var app = new Ext.app.Application({
     name: 'MyApp',
     autoCreateViewport: false,
     launch: function() {
     console.log('launch:');
                }
            });

    }
    });

    Quote Originally Posted by olouvignes View Post
    It seems that Phonegap can't fire "deviceready" event that PR2 requires for starting up. Quite strange.
    A quick fix can be to replace l.8846 (debug-w-comments) from :
    Code:
    if (Ext.browser.is.PhoneGap) {
    to :
    Code:
    if (false && Ext.browser.is.PhoneGap) {
    We need sth smarter though...

  9. #9
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Default


    Nope sth like :

    Code:
    Ext.application({
    
    
        name: 'MyApp',
    	controllers: [],
    
    
    	autoCreateViewport: true,
    	viewport: {
            autoMaximize: false
        },
    
    
    	init: function() {
            d&&console.log(this.name + '.application#init', [this, arguments]);
        },
    
    
        launch: function() {
            this.launched = true;
            this.mainLaunch();
        },
    
    
        mainLaunch: function() {
    		d&&console.log(this.name + '.application#mainLaunch', [this, arguments]);
            if ((Ext.os.deviceType == 'Phone' && !device) || !this.launched) {return;}
        }
    
    
    });
    Always had "Ext.setup already launched" when wrapped in Ext.setup... Worked well so far.

  10. #10
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    I'm running the following code with Phone Gap 1.2.0 with no problems:

    Code:
    Ext.application({
        name: 'Sencha',
        launch: function() {
            alert('launched');
        }
    });
    I've tested on the simulator on both iOS 4.3 and 5, and iOS 5 on device.

    Please ensure you have included PhoneGap before you include ST:

    Code:
    <!DOCTYPE HTML>
    <html lang="en-US">
        <head>
            <base href="http://rob.local/test/phonegap/" />
            <meta charset="UTF-8">
            <title>PhoneGap Test</title>
            
            <!-- Include PhoneGap first -->
            <script type="text/javascript" charset="utf-8" src="phonegap-1.2.0.js"></script>
            
            <!-- Include Sencha Touch -->
            <script type="text/javascript" src="../../../touch/sencha-touch.js"></script>
            
            <!-- Include the application -->
            <script type="text/javascript" src="app.js"></script>
        </head>
        <body></body>
    </html>
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.