Skip to content

Commit

Permalink
Merge pull request #45 from pedrocarrico/master
Browse files Browse the repository at this point in the history
Fix AMD module loading
  • Loading branch information
kpdecker committed Jan 26, 2015
2 parents 414d573 + 5350601 commit 6983a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@
if (typeof module !== 'undefined' && module.exports) {
module.exports = JsDiff;
}
else if (typeof define === 'function') {
else if (typeof define === 'function' && define.amd) {
/*global define */
define([], function() { return JsDiff; });
}
Expand Down

0 comments on commit 6983a0b

Please sign in to comment.