Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Dec 2009
    Location
    Paris, FR
    Posts
    9
    Vote Rating
    0
    xcambar is on a distinguished road

      0  

    Default [FIXED][PR4] Dependency loading with models

    [FIXED][PR4] Dependency loading with models


    Hi,
    the following code doesn't work if if I haven't loaded manually the class 'Tab.Models.User.Basic'.

    Code:
    Ext.regModel('Tab.Models.User.Frontend', {
        'extend'    : 'Tab.Models.User.Basic',
    });
    I've noticed that in Ext.define method, the classes passed in the configuration with the keys 'extend' and 'requires' are automatically loaded. Shouldn't it be the same for Ext.regModel with 'extend' ?

    How about adding a "requires" configuration key in Ext.regModel ? It would prevent the developer from having to add manually pre-loading routines and would keep the definition of the model (requirements are part of the definition, IMO) inside the configuration object-literal.

  2. #2
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    7
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    We're working on refactoring this to bring Model definition into line with the rest of the framework. Stay tuned!
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,803
    Vote Rating
    606
    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


    Should be fixed up for the next release.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Similar Threads

  1. Model.load not sending id, loading all models
    By dewie in forum Sencha Touch 1.x: Discussion
    Replies: 26
    Last Post: 8 Jul 2014, 1:45 PM
  2. Loading Multiple Models by Association using Store
    By babar.sajjad in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 31 Mar 2011, 6:56 AM
  3. Model: Lazy loading associated models
    By Mithon in forum Ext: Discussion
    Replies: 3
    Last Post: 23 Mar 2011, 11:16 AM
  4. [FIXED]Models and Stores
    By sg707 in forum Ext:Bugs
    Replies: 5
    Last Post: 20 Feb 2011, 3:50 AM
  5. Replies: 3
    Last Post: 10 Mar 2010, 3:54 PM

Thread Participants: 2

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