Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-5501 in a recent build.
  1. #1
    Sencha User Dumas's Avatar
    Join Date
    Dec 2008
    Location
    Vienna, Austria
    Posts
    583
    Vote Rating
    9
    Dumas will become famous soon enough

      0  

    Default Ext.Date.format breaks ugly on wrong input

    Ext.Date.format breaks ugly on wrong input


    REQUIRED INFORMATION




    Ext version tested:
    • Ext 4.0.7
    Browser versions tested against:
    • Safari 5.1.3
    DOCTYPE tested against:
    • HTML 4
    Description:
    • In Safari executing Ext.Date.format(undefined, "Y-m-d") results in an 'undefined is not a function' error, which is very hard to track if it is e.g. used in an tpl. It's also very bad when using the date column format property.
    • In Chrome this works properly.
    Steps to reproduce the problem:
    • Open the API Docs
    • Type Ext.Date.format(undefined, "Y-m-d") in the console
    The result that was expected:
    • '' (empty string)
    The result that occurs instead:
    • an exception
    Test Case:


    Code:
       Ext.Date.format(undefined, "Y-m-d")








    best regards
    Roland
    Roland Sch├╝tz
    Software Architect
    ---
    Bancha - Seamless integrate CakePHP with ExtJS and Sencha Touch

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,642
    Vote Rating
    900
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1