Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #130 from jasontbradshaw/master
Browse files Browse the repository at this point in the history
Add AMD support
  • Loading branch information
jakl committed Jul 25, 2014
2 parents 16e5ca4 + 85ce86d commit 9f12f32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions twitter-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -1371,6 +1371,10 @@
module.exports = twttr.txt;
}

if (typeof define == 'function' && define.amd) {
define([], twttr.txt);
}

if (typeof window != 'undefined') {
if (window.twttr) {
for (var prop in twttr) {
Expand Down

0 comments on commit 9f12f32

Please sign in to comment.