1. #1
    Sencha Premium Member Neilcoder's Avatar
    Join Date
    Apr 2011
    Location
    Ireland
    Posts
    262
    Vote Rating
    0
    Neilcoder is on a distinguished road

      0  

    Question Bootstrap / ext-debug-all / conditions should mean isDevelopment=true

    Bootstrap / ext-debug-all / conditions should mean isDevelopment=true


    Hi,

    in bootstrap js it has at the top in comments;

    Code:
     * Will automatically load ext-all-debug.js if any of these conditions is true:
     * - Current hostname is localhost
     * - Current hostname is an IP v4 address
     * - Current protocol is "file:"
    I have 2 out of 3, localhost and an IP v4 address, yet it loads ext-all rather than ext-debug-all

    I can see when I run my bootstrap file;

    host == "localhost:8080"

    test == /^localhost$/

    so i hard coded a change

    Code:
            localhostTests = [
                /^localhost:8080$/,
                 /\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/  // IP v4
            ],
    which worked, but I was wondering if there was a neater way of doing this?

    I'm not sure if this counted as a bug or as help? so I've posted here.


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


    It's been accounted for in the next release, the regex will detect a port.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Similar Threads

  1. Replies: 0
    Last Post: 30 Mar 2011, 1:35 PM
  2. [CLOSED]No Bootstrap?
    By sg707 in forum Ext:Bugs
    Replies: 1
    Last Post: 16 Feb 2011, 4:01 PM
  3. Ext-Core to Bootstrap ExtJS
    By Daemonz80 in forum Ext: Q&A
    Replies: 2
    Last Post: 6 Apr 2010, 10:36 AM
  4. How to enable TreePanel drag & drop only if certain conditions are true
    By colinexl in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 18 Mar 2008, 4:16 PM

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..."