1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    7
    Vote Rating
    0
    jaycode is on a distinguished road

      0  

    Default Unanswered: Ext.override doesn't always work on all cases.

    Unanswered: Ext.override doesn't always work on all cases.


    Hi, I have found this issue a couple of times so I found this rather annoying. My current solution is I had to (gulp!) edit the core files directly, I wonder if there is another way to override some classes that just doesn't work with Ext.override.

    I found that both Ext.chart.Highlight and Ext.core.Element cannot be overridden.

    Example:
    Code:
    	// Stop charts from animating on mouse over.
    	Ext.override(Ext.chart.Highlight, {
    		highlightItem: function(item) {
    			console.log('this isn't get called');
        },
    	});

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Answers
    656
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You will need override prototype in cases of element, etc.

    Ext.core.Element.prototype.functionToOverride = function ( .. ) { .. }

    Scott.

Thread Participants: 1

Tags for this Thread

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