1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    11
    Vote Rating
    0
    andresdavidortiz is on a distinguished road

      0  

    Default Problem with warnings

    Problem with warnings


    When i do the building i get this warning lines in the console

    [WRN] [ [1000] : Yui Compressor Warning <> Trailing comma is not legal in an ECMA-262 object initializer => ] ] :: ( /Applications/MAMP/htdocs/myapp/ext/src/ux/grid/filter/DateFilter.js => 133 : 25 )
    [INF] Processing class inheritance graph
    [INF] Processing instantiation refereces to classes and aliases
    [WRN] [ [1000] : Yui Compressor Warning <> Trailing comma is not legal in an ECMA-262 object initializer => ] ] :: ( /Applications/MAMP/htdocs/myapp/ext/src/ux/grid/filter/DateFilter.js => 133 : 25 )

    Did i miss any requires or Ext.requires in my App.js file?

    Thanks

  2. #2
    Sencha User
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    989
    Vote Rating
    47
    ssamayoa has a spectacular aura about ssamayoa has a spectacular aura about

      0  

    Default


    What in "Trailing comma is not legal in an ECMA-262 object" makes you wonder you missed "requires"?

    Does the application fails?
    UI: Sencha Architect 2.x / ExtJS 4 MVC
    Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
    Application Server: Glassfish 3.1.x
    Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5

    If you like my answer please vote!

  3. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    11
    Vote Rating
    0
    andresdavidortiz is on a distinguished road

      0  

    Default


    Quote Originally Posted by ssamayoa View Post
    What in "Trailing comma is not legal in an ECMA-262 object" makes you wonder you missed "requires"?

    Does the application fails?
    Nop, it does not fail. But when i am gonna build that message appears in console, and i don't know if i'm doing something wrong or it's the sencha compiler which is sending that warning for no reason

  4. #4
    Sencha User
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    989
    Vote Rating
    47
    ssamayoa has a spectacular aura about ssamayoa has a spectacular aura about

      0  

    Default


    Quote Originally Posted by andresdavidortiz View Post
    Nop, it does not fail. But when i am gonna build that message appears in console, and i don't know if i'm doing something wrong or it's the sencha compiler which is sending that warning for no reason
    Is not Sencha's "compiler", is YUI compressor the one generating the warning.
    And there is a reason:

    /Applications/MAMP/htdocs/myapp/ext/src/ux/grid/filter/DateFilter.js
    Trailing comma is not legal in an ECMA-262 object initializer

    You should start to learn what is abstracted in cmd, you have a case of "leaky abstraction":

    http://www.joelonsoftware.com/articles/LeakyAbstractions.html

    F
    or now just ignore the warnings.
    UI: Sencha Architect 2.x / ExtJS 4 MVC
    Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
    Application Server: Glassfish 3.1.x
    Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5

    If you like my answer please vote!