1. #1
    Ext User
    Join Date
    Sep 2007
    Posts
    1
    Vote Rating
    0
    auspex is on a distinguished road

      0  

    Default Unanswered: Changing Ext Scope or namespace

    Unanswered: Changing Ext Scope or namespace


    Hi there,

    I was wondering: how free am I to do something like:

    (function () {

    Ext = {...}

    // ...

    My.Namespace = Ext;

    })();

    ???

    Thanks

  2. #2
    Sencha User
    Join Date
    Aug 2009
    Posts
    480
    Vote Rating
    1
    plalx has a spectacular aura about plalx has a spectacular aura about

      0  

    Default


    I really don't see why you would wanna do this...?

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Answers
    4
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    why??

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,304
    Answers
    63
    Vote Rating
    125
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    We will have a generic solution to solve this with Ext JS 4 and Sencha Touch 1.0.

    This will allow you to run Ext JS 4, Sencha Touch and Ext Core on the same page with different namespaces and not having them collide.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Similar Threads

  1. JavaScript Scope - Ext Scope
    By Nils-Fredrik in forum Community Discussion
    Replies: 5
    Last Post: 29 Sep 2009, 12:06 AM
  2. Ext Namespace
    By gurufaction in forum Ext 3.x: Help & Discussion
    Replies: 8
    Last Post: 9 Jul 2009, 4:55 AM
  3. Sub : Ext.namespace
    By JDevloper in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 3 Mar 2008, 7:30 AM

Thread Participants: 3