Skip to content

Commit df9861f

Browse files
author
taylorhakes
committed
Fixed a bug in amd definition
1 parent 5ba0817 commit df9861f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fecha",
33
"main": "fecha.js",
4-
"version": "0.2.1",
4+
"version": "0.2.2",
55
"homepage": "https://github.com/taylorhakes/fecha",
66
"authors": [
77
"Taylor Hakes"

fecha.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253

254254
if (typeof module !== 'undefined' && module.exports) {
255255
module.exports = fecha;
256-
} else if (typeof require !== 'undefined' && require.amd) {
256+
} else if (typeof define === 'function' && define.amd) {
257257
define(function () {
258258
return fecha;
259259
});

fecha.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fecha",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Date formatting and parsing",
55
"main": "fecha.js",
66
"scripts": {

0 commit comments

Comments
 (0)