Results 1 to 2 of 2

Thread: [4.1rc1] Ext.widget reports config is undefined

Hybrid View

Previous Post Previous Post   Next Post Next Post
    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
      0  

    Default [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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Yeah, it needs a simple check.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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