Results 1 to 3 of 3

Thread: MessageBox show() logs a warning if no cls is provided

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-7937 in 4.2.0.265.
  1. #1
    Sencha User
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5
    Vote Rating
    1
      0  

    Default MessageBox show() logs a warning if no cls is provided

    REQUIRED INFORMATION

    Ext version tested:
    • 4.1.1a
    • 4.1.2a
    Description:
    • MessageBox.show() makes a call to addCls() whether or not cfg.cls is defined
    • addCls() logs a warning if the cls provided is undefined
    Test Case:

    Code:
    <!DOCTYPE html>
    <html>
    <head>
        <link type="text/css" rel="stylesheet" href="resources/css/ext-all.css" />
        <script type="text/javascript" src="ext-all-dev.js"></script>
    </head>
    <body>
        <script type="text/javascript">
            Ext.onReady(function () {
    
    
                Ext.Logger.warn = function(){
                    console.warn(arguments); 
                    console.trace();
                };
    
    
                Ext.Msg.show({
                    title: 'My Message',
                    msg: 'Message Body',
                    buttons: Ext.Msg.OK
                });
    
    
            });
        </script>
    </body>
    </html>




  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,336
    Vote Rating
    1296
      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5
    Vote Rating
    1
      0  

    Default

    You're most welcome, good sir!
    Aaron N. Smith
    @aaron_n_smith
    Software Architect
    Modus Create, Inc.

Posting Permissions

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