Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested/Hierarchy of yepnope calls in multiples files doesn't work #161

Closed
jpmckinney opened this issue Apr 14, 2013 · 0 comments
Closed

Comments

@jpmckinney
Copy link

See http://jsfiddle.net/GJZQz/6/ for a simple example of the bug. Here's the situation:

  1. I use yepnope in my app to load dependencies. Once dependencies are loaded, I run my code, using yepnope's complete callback.
  2. My dependencies use yepnope to load their dependencies. Once their dependencies are loaded, they run their code, using yepnope's complete callback.

Currently, as soon as my direct dependencies are loaded, my complete callback runs. The problem is that I need my complete callback to wait for the dependencies of my dependencies to load, and for my dependencies to run their complete callbacks. In other words, my complete callback should run last.

In Yepnope, my app code currently runs as soon as its direct dependencies are fulfilled; but it should wait until its indirect dependencies are fulfilled, too. The only solution right now is to add my dependencies' dependencies to my list of dependencies - but I shouldn't have to know anything about my dependencies' dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants