Results 1 to 2 of 2

Thread: Do not add dynamic requirement from detected lazy instantiation reference to widget

    You found a bug! We've classified it as SDKTOOLS-1136 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    19

    Default Do not add dynamic requirement from detected lazy instantiation reference to widget

    I am writing a custom compile command to split my js into multiple files. It's working great and it's based on my requires being strictly defined everywhere needed. My problem is that the compiler is parsing xtype: 'something' and adding these classes to the page set even if I don't require them.

    My custom router requires the js files containing these classes before creating the view with xtype: 'something'.

    Is there a config to disable this behavior? A workaround would be something like that in my controller:
    Code:
    indexAction: function() {
       var unparsable = 'something';
       return {
          xtype: unparsable
       };
    }
    The compiler would not detect these as lazy instantiation reference to widget.something but I would prefer to just disable the behavior in the compiler and leave my controller actions as they are. Thanks.

  2. #2
    Sencha User
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,748

    Default

    I will open a Feature Request for this since it cannot currently be disabled.

Similar Threads

  1. Models and lazy instantiation
    By mx_starter in forum Ext: Q&A
    Replies: 1
    Last Post: 22 Oct 2013, 4:51 AM
  2. Lazy Instantiation or Lazy Rendering?
    By RhineyII in forum Ext: Discussion
    Replies: 1
    Last Post: 22 Feb 2012, 7:35 AM
  3. lazy instantiation of the store
    By whalethewise in forum Ext: Q&A
    Replies: 2
    Last Post: 26 Jan 2012, 11:01 AM
  4. How to avoid Lazy instantiation?
    By msuresh in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 30 Nov 2010, 1:39 AM
  5. Fields not using lazy instantiation
    By ivanblue in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 7 Sep 2008, 4:40 PM

Posting Permissions

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