]> git.ipfire.org Git - thirdparty/moment.git/commit
verified 'require' is a function (on templates)
authorLior Chen <liorchen@gmail.com>
Mon, 3 Aug 2015 10:40:02 +0000 (13:40 +0300)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 9 Nov 2015 04:25:35 +0000 (20:25 -0800)
commit3a08d17bb7f3f30892e282aca0114dfe6e07e5b8
tree5df2b6dce3fd52af68272a8662f421125006ea9a
parentd162987ef4a10cee2f42abfc55e07bd2d97b69a7
verified 'require' is a function (on templates)

Added a check to verify 'require' is a function, before assuming it exists. In some cases 'exports' and 'module' are defined even when the system is not using require.
templates/locale-header.js
templates/test-header.js