Created
July 6, 2012 11:21
-
-
Save danscotton/3059627 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // locator_news_responsive/webapp/static/js/module/main.js | |
| define([ | |
| 'vendor/ender/reqwest', | |
| 'locator/bootstrap', <---- 'locator' here...where does this path come from? | |
| 'locator/locatorView' <---- is this the curl path that _we_ define in _our_ base.spv? | |
| ], function( | |
| reqwest, | |
| bootstrap, | |
| LocatorView | |
| ){ | |
| ... | |
| }); | |
| // our base.spv | |
| var curl = { | |
| paths: { | |
| ... | |
| 'locator': '../../../locator/news/responsive/<?= $config['locatorVersion'] ?>/js/module/' | |
| } | |
| }; | |
| This seems bad if that is the case, no? Our 'locator' path definition should be ours, and used by us solely? | |
| If we decide that we want to change the path to 'locator-dan', it means that the dependencies defined in main.js will break too? |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Their paths in
main.jsshould be relative to the current file?Their directory structure: