Skip to content

Commit

Permalink
Merge pull request #2 from Jakobo/umd_ready
Browse files Browse the repository at this point in the history
Make ElGrapho UMD friendly for node+webpack environments
  • Loading branch information
ericdrowell committed Apr 7, 2019
2 parents 3e6c18f + dcc0ac0 commit 0b687b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions engine/src/ElGrapho.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,5 +632,4 @@ ElGrapho.layouts = {
RadialTree: RadialTree
};

// node.js export
module.exports = ElGrapho;
module.exports = ElGrapho;
4 changes: 0 additions & 4 deletions engine/src/ElGraphoCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,3 @@ let ElGraphoCollection = {
};

module.exports = ElGraphoCollection;

if (window) {
window.ElGraphoCollection = ElGraphoCollection;
}

0 comments on commit 0b687b3

Please sign in to comment.