cytoscape / cytoscape.js-qtip

A Cytoscape.js extension that wraps the QTip jQuery library
MIT License
42 stars 35 forks source link

removed cytoscape from anonymous function call #3

Closed ktei closed 9 years ago

ktei commented 9 years ago

Hi, Max: I noticed that if I use cytoscape via require('cytoscape'), the cytoscape-qtip doesn't work very well, because the anonymous call expects cytoscape to be defined as global variable, which, if you use requirejs, won't be defined globally. I had a look at cytoscape-context-menu you wrote and did some change as per that project to fix the issue. Please have a look.

maxkfranz commented 9 years ago

Thanks; I can't look at this today, but I will soon.

maxkfranz commented 9 years ago

I think this should be covered by another refactoring; thanks!