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,660
    Vote Rating
    584
    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