Skip to content

Commit

Permalink
Fixed a bug in amd definition
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorhakes committed Aug 8, 2015
1 parent 5ba0817 commit df9861f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fecha",
"main": "fecha.js",
"version": "0.2.1",
"version": "0.2.2",
"homepage": "https://github.com/taylorhakes/fecha",
"authors": [
"Taylor Hakes"
Expand Down
2 changes: 1 addition & 1 deletion fecha.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@

if (typeof module !== 'undefined' && module.exports) {
module.exports = fecha;
} else if (typeof require !== 'undefined' && require.amd) {
} else if (typeof define === 'function' && define.amd) {
define(function () {
return fecha;
});
Expand Down
2 changes: 1 addition & 1 deletion fecha.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fecha",
"version": "0.2.1",
"version": "0.2.2",
"description": "Date formatting and parsing",
"main": "fecha.js",
"scripts": {
Expand Down

0 comments on commit df9861f

Please sign in to comment.