mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 21:07:39 -02:30
Copy all properties of original moment to wrapped object
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
var originalMoment = window.moment;
|
var originalMoment = window.moment;
|
||||||
|
|
||||||
export default function moment() {
|
function moment() {
|
||||||
|
|
||||||
// navigator.language is available in all modern browsers.
|
// navigator.language is available in all modern browsers.
|
||||||
// however navigator.languages is a new technology that
|
// however navigator.languages is a new technology that
|
||||||
@@ -15,4 +15,6 @@ export default function moment() {
|
|||||||
return originalMoment.apply(this, arguments);
|
return originalMoment.apply(this, arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_.merge(moment, originalMoment);
|
||||||
|
|
||||||
|
export default moment;
|
||||||
|
|||||||
Reference in New Issue
Block a user