Skip to content

[Date] set higher priority at new defined parsers #1100

Open
wants to merge 1 commit into from
View
2 Source/Types/Date.js
@@ -408,7 +408,7 @@ Date.extend({
//</1.2compat>
defineParser: function(pattern){
- parsePatterns.push((pattern.re && pattern.handler) ? pattern : build(pattern));
+ parsePatterns.splice(0,0,(pattern.re && pattern.handler) ? pattern : build(pattern));
return this;
},
Something went wrong with that request. Please try again.