Skip to content

Commit 6983a0b

Browse files
committedJan 26, 2015
Merge pull request #45 from pedrocarrico/master
Fix AMD module loading
2 parents 414d573 + 5350601 commit 6983a0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎diff.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@
532532
if (typeof module !== 'undefined' && module.exports) {
533533
module.exports = JsDiff;
534534
}
535-
else if (typeof define === 'function') {
535+
else if (typeof define === 'function' && define.amd) {
536536
/*global define */
537537
define([], function() { return JsDiff; });
538538
}

0 commit comments

Comments
 (0)
Please sign in to comment.