Results 1 to 5 of 5

Thread: Requires is not added for dynamically used models.

  1. #1
    Sencha Premium User
    Join Date
    May 2015
    Posts
    33
    Vote Rating
    0
      0  

    Default Requires is not added for dynamically used models.

    We have code similar to this. When doing an inspection, the two models are not getting added to the requires array. If adding manually, they get marked as unused. I did a cleanup of all our requires using the code analyze, and our code started to crash as there were missing requires.

    Code:
    var grid = Ext.create('composition.network.widgets.Selector', {
        itemId: 'selectorId',
        model: this.getSecurityObjectModel('A'),
        ...
    
    getSecurityObjectModel: function(type) {
        var model;
        switch (type) {
            case 'A':
                model = 'composition.network.model.A';
                break;
            case 'B':
                model = 'composition.network.model.B';
                break;
        }
        return model;
    },

  2. #2
    Sencha Premium User
    Join Date
    May 2015
    Posts
    33
    Vote Rating
    0
      0  

    Default

    Is this a bug or as designed?

  3. #3
    Sencha Premium User
    Join Date
    May 2015
    Posts
    33
    Vote Rating
    0
      0  

    Default

    Hello?

  4. #4
    Sencha Premium User
    Join Date
    May 2015
    Posts
    33
    Vote Rating
    0
      0  

    Default

    La la la la.. la la la... I guess there's no one around, so I just keep singing. La la la...

  5. #5
    Sencha Premium User
    Join Date
    May 2015
    Posts
    33
    Vote Rating
    0
      0  

    Default

    Ho ho ho... so much fun. No one here to read this, so I keep singing. Ho ba bum... yo do ba da dim

Similar Threads

  1. Replies: 3
    Last Post: 28 Oct 2013, 10:12 AM
  2. [INFOREQ] Ext.data.TreeStore does not added to the list of application models
    By commandus in forum Sencha Architect 2.x: Bugs
    Replies: 8
    Last Post: 24 Oct 2012, 8:01 AM
  3. Models not added to Serialization Policy
    By rookie in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 1 Mar 2009, 3:29 AM
  4. dynamically loading script into dynamically added iframe in IE
    By markpele in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 13 Dec 2007, 4:50 AM

Posting Permissions

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