mootools/mootools-more — pull request #1100 by danielecorti81 (2012-02-10 15:13:50+00:00)
Title: [Date] set higher priority at new defined parsers

Using splice(0,0,… when adding parser allow to set priority at new defined parsers.

e.g. if I add a parser for European dates

Date.defileParser("%d/%m/%Y");

without this change all strings with the day under 13th of month, like 09/02/2012, will be parsed in the american date, the example will be 2 September 2012, not 9 February 2012.