Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-9105 in 4.2.1.744.
  1. #1
    Ext JS Premium Member SebTardif's Avatar
    Join Date
    Feb 2011
    Location
    Cambridge, MA
    Posts
    412
    Vote Rating
    8
    SebTardif is on a distinguished road

      0  

    Default In controller using views: 'Microsoft.view.MyView' generate many requests

    In controller using views: 'Microsoft.view.MyView' generate many requests


    With Ext JS 4.1.x, when having in my controller a views without array like:
    Code:
    Ext.define('Microsoft.controller.clientManager.SectionDetail', {    extend: 'Ext.app.Controller',
        views: ['Microsoft.view.MyView'],
    ...
    That doesn't generate any error or warning. My application does work fine.

    When doing the same with Ext JS 4.2.0 RC. It generate one request to the server for a JavaScript file, for each letter, like
    M.js
    i.js
    c.js
    ....

    Beside expecting more reasonable behavior, I expect reasonable assertions are done when I'm using a debug version of the library.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,905
    Vote Rating
    626
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    It's not really a bug, since the docs say it's supposed to be an array, but I don't see any harm in allowing it to use a string as well.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 1

Tags for this Thread