Tighten check for detecting if Moment is installed (#6113)

This commit is contained in:
Jon Rimmer
2019-03-06 08:11:24 +00:00
committed by Simon Brunel
parent f9f048a5c5
commit d3b7559b9b

View File

@@ -18,7 +18,7 @@ var FORMATS = {
year: 'YYYY'
};
adapters._date.override(moment ? {
adapters._date.override(typeof moment === 'function' ? {
_id: 'moment', // DEBUG ONLY
formats: function() {