Results 1 to 2 of 2

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

  1. #1
    Sencha Premium Member Neilcoder's Avatar
    Join Date
    Apr 2011
    Vote Rating

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


    in bootstrap js it has at the top in comments;

     * 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

            localhostTests = [
                 /\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 User evant's Avatar
    Join Date
    Apr 2007
    Sydney, Australia
    Vote Rating


    It's been accounted for in the next release, the regex will detect a port.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts