1. #11
    Ext JS Premium Member
    Join Date
    Mar 2010
    Location
    Atlanta, GA
    Posts
    38
    Vote Rating
    0
    RoyW is on a distinguished road

      0  

    Default


    Unfortunately I don't think so.

    The files seem to be created in alphabetical order so the following wont work

    File: MyApp/view/View.js
    Code:
    Ext.define('MyApp.view.View', {
            extend: 'Ext.view.View',
            ...
    });
    File: MyApp/view/DataView.js
    Code:
    Ext.define('MyApp.view.DataView', {
            extend: 'MyApp.view.View',
            ....
    });

    In the folder list 'DataView' appears alphabetically before 'View' so the code will be generated as follows
    Code:
    Ext.define('MyApp.view.DataView', {
            extend: 'MyApp.view.View',
            ....
    });
    Ext.define('MyApp.view.View', {
            extend: 'Ext.view.View',
            ...
    });
    As soo an Ext sees the " extend: 'Ext.view.View', " the loader will look for that class. It is not defined so will try to load it and fail. If the loader is disabled it will fail saying "MyApp.view.View is not defined"

  2. #12
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,668
    Answers
    3354
    Vote Rating
    746
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    So playing around with this code:

    Code:
    Ext.define('ClassB', {
        extend : 'ClassA'
    });
    
    Ext.define('ClassA', {});
    and of course it will try to load ClassA.js. Until I can work on a more robust solution, in Fiddle 1.1 I've come up with a way to pause and resume Ext.Loader and will insert Ext.Loader.pause() and Ext.Loader.resume() in the code automatically so there won't be anything you have to do, Fiddle will automatically insert this. Do note, the pause and resume aren't methods of Ext.Loader, Fiddle will be adding these methods.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar