raphael: raphael breaks if loaded via require-js.

Raphael also breaks if requires merely existent on the page. If require is not undefined (and in case requirejs is loaded, require is defined), eve won’t be added to the global scope.

About this issue

  • Original URL
  • State: closed
  • Created 12 years ago
  • Comments: 70

Most upvoted comments

I just added <script src=...> before other JS files directly into main HTML

file and it worked.

Azat, http://azat.co

On Wed, Mar 28, 2012 at 7:19 PM, Timophey < reply@reply.github.com

wrote:

The same problem (Require.js+Backbone.js+Raphael.js). It does not support AMD system… So… what could we do? Load it globally…? pf…


Reply to this email directly or view it on GitHub:

https://github.com/DmitryBaranovskiy/raphael/issues/524#issuecomment-4795485

+1

The idea is to load raphael without leaking any other variable or library into your window or rjs context. With no-deps you explicitly define eve as your dependency and share it with raphael.