1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    74
    Vote Rating
    2
    url is on a distinguished road

      0  

    Default Unanswered: How to override Ext.create()

    Unanswered: How to override Ext.create()


    Hi all,

    How can we override Ext.create. The functionality should be in such a way that when ever an object is getting created the overridden create method should be called.

    Any help would be really appreciated.

    Regards
    url

  2. #2
    Sencha - Community Support Team
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    346
    Vote Rating
    113
    vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all vietits is a name known to all

      0  

    Default


    Try this:
    Code:
    Ext.$create = Ext.create;
    Ext.create = function(){
        // your code here
        return Ext.$create.apply(Ext, arguments);
    }
    Also, you can use Ext.Function.interceptBefore(), Ext.Function.interceptAfter().

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    74
    Vote Rating
    2
    url is on a distinguished road

      0  

    Default Thanx for ur quick responce

    Thanx for ur quick responce


    Hi veitis
    Thanx for ur quick response.

    My requirement is to add unique id to each object which is getting created using Ext.create method and should show that id's in one panel/window. This panel/window should be displayed in application's viewport. If the object is destroyed then the color of id should be changed.

    Any help would be really appreciated.

    Thanx

  4. #4
    Sencha User
    Join Date
    Mar 2011
    Location
    Hyderabad
    Posts
    102
    Answers
    9
    Vote Rating
    13
    Zinnia will become famous soon enough

      0  

    Default


    While defining the object, assign a random value to the id property that may solve your problem.

    Thanks

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