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
    482
    Vote Rating
    0
    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 - Community Support Team
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    1
    Answers
    4
    tryanDLS is on a distinguished road

      0  

    Default


    why??

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,189
    Vote Rating
    63
    Answers
    3
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      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