From 49d277e61468aad73d6c90f561b860a8f5fda4cf Mon Sep 17 00:00:00 2001 From: mrsfy Date: Fri, 29 Jul 2016 13:04:56 +0300 Subject: [PATCH] Fixed AMD and CommonJS description. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9d9540d..0392ed7 100644 --- a/README.md +++ b/README.md @@ -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 }); ```