Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    24
    Vote Rating
    3
    ElCondor1969 is on a distinguished road

      0  

    Default Bug on dynamic loading of js modules

    Bug on dynamic loading of js modules


    Hi to all.

    I encountered this bug that plagues the dynamic loading of modules javascript.
    I have attached an application that allows you to replicate the bug. The execution of this test case, however, requires a web server to remedy the problem of "cross requests".

    The application is conceptually very simple: it is a panel with two buttons. The first button will instantiate the view "Alfa.Beta" (a simple panel), while the second button will instantiate the view "Alfa.Beta.Gamma" (still a simple panel).

    Once the application is launched, if as first thing you press the button 1 and then the button 2, everything will be error-free, and the two views will be displayed without any problems.

    Now replicate the error: close the application and restart it again. This time we press the button 2 first and then the button 1. When you press button 1 will get the following error:

    Bug.png

    In my opinion the problem lies within the nesting structure of views, namely:


    ALFA.BETA
    ALFA.BETA.GAMMA


    If it is loaded first the longer one, then the loading of the shorter will cause the error.

    I am at your disposal for any clarification.

    Bye!

    Sergio.
    Attached Files

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,785
    Vote Rating
    597
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    This isn't a bug, you're overwriting the class.

    JS doesn't have any concept of namespaces, so when we talk about creating a namespace with a class, in simple terms, we mean:

    Code:
    Ext.define('A.B.C', {});
    
    A = {};
    A.B = {};
    A.B.C = {};
    So essentially, you can't have a class that already exists as a "namespace". For example, we can't have an Ext.panel class, because Ext.panel.Panel already exists as a class.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    24
    Vote Rating
    3
    ElCondor1969 is on a distinguished road

      0  

    Default


    Thank you very much Evan for your usefully reply.
    Bye.

    Sergio.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."