1. #1
    Touch Premium Member svenna's Avatar
    Join Date
    Jun 2007
    Location
    Oslo,Norway
    Posts
    551
    Vote Rating
    23
    svenna has a spectacular aura about svenna has a spectacular aura about

      0  

    Default adding requires to views (Touch 2)

    adding requires to views (Touch 2)


    While debugging it does not really matter, but when building for production and moving away from the loader (using sdk-tools) it does.

    1. Why does not designer add e.g Ext.Img and components to the requires property of a class? I can't find a reason that it should not.

    2. How do I best resolve this? Just to confirm it's the only issue in the current development I added manually edited the deploy files, before building testing/production/native packages with the sdk-tools. This is a bit of work, when you need to do all views at once, and as expected the files are overwritten when doing changes from designer.
    Sven Tore Iversen

  2. #2
    Touch Premium Member svenna's Avatar
    Join Date
    Jun 2007
    Location
    Oslo,Norway
    Posts
    551
    Vote Rating
    23
    svenna has a spectacular aura about svenna has a spectacular aura about

      0  

    Default


    For now I'm using the new override feature in Designer on all views.
    The override does nothing except at the widgets to the requires list.

    This removes the warning for test builds, and enables production/native build.

    eg:
    Code:
    Ext.define('EcoInteractive.view.override.MainMenu', {
        requires: [
            'EcoInteractive.view.MainMenu',
            'Ext.Img',
            'Ext.plugin.ListPaging',
            'Ext.plugin.PullRefresh',
        ]
    }, function() {
        Ext.override(EcoInteractive.view.MainMenu, {
            
        });
    });
    Sven Tore Iversen

  3. #3
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,264
    Vote Rating
    80
    ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough

      0  

    Default


    You can safely remove "
    Ext.override
    " since the porpuse of the override is the requires clause and nothing is really overriden.

    Regads.
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

  4. #4
    Touch Premium Member svenna's Avatar
    Join Date
    Jun 2007
    Location
    Oslo,Norway
    Posts
    551
    Vote Rating
    23
    svenna has a spectacular aura about svenna has a spectacular aura about

      0  

    Default


    True, thanks
    Sven Tore Iversen

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..." hd porno faketaxi