Closed vshjxyz closed 11 years ago
Could you give me more information on your production setup and how ratio.js is included?
Many production systems are wrapping the JS libraries into a function(){}(this)
for security reasons (see django-pipeline) so basically I think that if NPM is disabled (typeof exports == 'undefined'
) then we should inject the ratio object to the window (iScroll, bootbox and more libs are behaving this way)
I updated this in the dev branch and will merge with the master within this week. Thanks for your help.
Fixed in Version 0.4
Hello,
I've noticed that this library has the same issue as this one: https://github.com/makeusabrew/bootbox/issues/71
TL;DR: Ratio object is not directly attached to the window so I can't see it in production
this code resolves the problem