You found a bug! We've classified it as EXTJS-15891 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    17
    Vote Rating
    0
    dwsnyder is on a distinguished road

      0  

    Default Infinite loop in Ext.Date.clearTime()

    Infinite loop in Ext.Date.clearTime()


    See also http://www.sencha.com/forum/showthre...rashes-browser
    Not sure how the code is shared between Touch and ExtJS but it's a bug in both.

    Ext version tested:
    • Ext 4.2.2 rev
    Browser versions tested against:
    • IE9
    • FF31
    DOCTYPE tested against:
    • html
    Description:
    • Describe the problem in greater detail here, summarizing the behavior.
    • Ext.Date.clearTime(new Date(NaN))
    • The code path that tries to adjust for DST difference will never break out of the loop if the Date.getDate() is NaN. This should probably check for isNaN() first and either throw an Exeption or fail silently and log a message if in dev mode.


    Steps to reproduce the problem:
    • Execute the following in any ExtJS application:
    • Ext.Date.clearTime(new Date(NaN))
    The result that was expected:
    • Maybe an Exception? or nothing?
    The result that occurs instead:
    • Browser locks up, eventually you get the slow script warning and can stop it

  2. #2
    Sencha - Support Team
    Join Date
    Nov 2014
    Posts
    463
    Vote Rating
    11
    joel.watson will become famous soon enough

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1