PDA

View Full Version : [FIXED] Ext.Date.format breaks ugly on wrong input



Dumas
1 Mar 2012, 1:37 PM
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:




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










best regards
Roland

mitchellsimoens
1 Mar 2012, 3:02 PM
Thanks for the report.