jsplumb/biltong

Biltong undefined when another library sets var exports

sporritt opened this issue · 1 comments

from https://github.com/sporritt/jsPlumb/issues/215

When another program sets the variable exports before jsPlumb is loaded, on line 461 of jquery version, biltong is set as a local var, but not a global, so any subsequent calls to Biltong are undefined.
I believe the line (461 of jQuery version) should be changed from:
Biltong = exports;
To:
Biltong = root.Biltong = exports;

fixed in 0.2