Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-5520 in a recent build.
  1. #1
    Touch Premium Member bsbal's Avatar
    Join Date
    Oct 2011
    Location
    Basel, Switzerland
    Posts
    32
    Vote Rating
    0
    bsbal is on a distinguished road

      0  

    Default [4.1rc1] Ext.widget reports config is undefined

    [4.1rc1] Ext.widget reports config is undefined


    REQUIRED INFORMATION


    Ext version tested:
    • Ext 4.1-rc1 (nightly build 2012-03-03)
    Browser versions tested against:
    • IE7/9
    • FF10.0.2
    DOCTYPE tested against:
    • <!DOCTYPE html>
    Description:
    • It seems that there ist a problem with Ext.widget functionality. If you try to get an instance of a widget, you get a "config is undefined" JS error.
    Steps to reproduce the problem:


    Get an instance of a User defined widget (e.g. User window).

    Test Case:

    If I call
    Code:
    var myWindow =  Ext.widget('userkontrolleupload')
    without config, a script error appears saying config is undefined.

    If I call
    Code:
    var myWindow = Ext.widget('userkontrolleupload', {})
    no script error appears. Everything ok.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,545
    Vote Rating
    873
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Yeah, it needs a simple check.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1