Threaded View

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Vote Rating
    lethargic is on a distinguished road


    Default Answered: Array contains value

    Answered: Array contains value

    Fairly new to Sencha Touch and Javascript in general, so please be gentle

    What is the best way to search an array for existence of a value? I see that there is an Ext.Array helper class, with .contains, .filter, etc (lots of useful methods). However, when I try to use it, I'm getting Ext.Array is null. When I inspect in Chrome, I can see that, in fact, the Ext object does not have an Array property (each, etc etc are there). Is there some additional dependency? Or is Array only available in the "full" Ext? Or is there a better way to do this?

    if (!Ext.Array.contains(myapp.views.nearMe.plottedMuseums, museum)){
    Thanks in advance


  2. There is no Ext.Array. In Sencha Touch 1 we put those convenient methods onto the Array.prototype meaning you can do

    var arr = [1, 2, 3, 4, 5];
    arr.contains(2); //true
    arr.indexOf(3); //2

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