Results 1 to 2 of 2

Thread: ExtJS 4.1 | Twice Ext.define - doesn't throw any exception

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    7

    Default ExtJS 4.1 | Twice Ext.define - doesn't throw any exception

    Hello,
    It'll be very nice if ExtJS will throw any exception when we try to double define some component.

    FE:

    Ext.define('myApp.view.user.Menu' ,{ /* some code */ });

    file with the upper definition should be in: app/view/user/Menu.js

    coppy upper definiotion, paste to file in: app/view/group/Menu.js
    then forget to change user to group in definition, and you will nothing see, just blank page, without any errors in console.

    Regards.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,451

    Default

    I think this is more of application coding style issue. Your class name should exactly be the same as your file structure so this wouldn't happen anyway.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    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
  •