Skip to content

Commit

Permalink
Fixed AMD and CommonJS description.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsfy committed Jul 29, 2016
1 parent 828dc3f commit 49d277e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ Download the library:
CommonJS:
```js
var cytoscape = require('cytoscape');
var nodeResize = require('oCanvas');
var nodeResize = require('cytoscape-node-resize');
var oCanvas = require('oCanvas');

nodeResize( cytoscape, jQuery, oCanvas ); // register extension
```

AMD:
```js
require(['cytoscape', 'cytoscape-node-resize'], function( cytoscape, nodeResize, jQuery, oCanvas ){
require(['cytoscape', 'cytoscape-node-resize', "jquery", "oCanvas], function( cytoscape, nodeResize, jQuery, oCanvas ){
nodeResize( cytoscape, jQuery, oCanvas ); // register extension
});
```
Expand Down

0 comments on commit 49d277e

Please sign in to comment.