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

Allow Modules to load multiple JS files in debug mode #1202

Open
rcatalano opened this issue Apr 11, 2014 · 0 comments
Open

Allow Modules to load multiple JS files in debug mode #1202

rcatalano opened this issue Apr 11, 2014 · 0 comments
Milestone

Comments

@rcatalano
Copy link

My app makes heavy use of modules. In debug mode, the list of scripts in the debugger looks like this:

It's a little unwieldy. I'd like to see the files that make up my modules individually.

There are two parts to implementing this:

  1. SC.Module._loadJavaScriptForModule needs to support scriptURL and stringURL properties that are arrays. Like in _loadCSSForModule, it would loop over the arrays and load each file, calling _moduleDidLoad when all files have been loaded.
  2. Build tools (abbot or the new BT) should generate SC.MODULE_INFO that contains scriptURL and stringURL arrays. They also need to make sure the individual files are accessible by the URLS it provides to SC.MODULE_INFO.

At this point I don't see much value in implementing this in Abbot. I have already spoken with mauritslamers about implementing this is the new BT. Once the support is added to the framework, we can tackle the BT side.

@publickeating publickeating added this to the 2.0.0 milestone Dec 10, 2014
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