Closed onecrayon closed 15 years ago
This change is complete; if Javascripts need to figure out where to find files outside of Support/Scripts or Support/Library they can get the paths to the Support folders from JSCocoaLoaderController.supportPaths.
When loading a script, JSCocoaLoader would look here:
Calls to importJS('scriptname') would search:
If a second optional boolean parameter is passed to importJS(), it will search in all known paths (on the off chance that someone needs to load another item in the Scripts folder). So User => Scripts, Library; Sugar => Scripts, Library; JSCocoaLoader => Library (unless you want to bundle some actions with JSCocoaLoader itself, in which case it would have a Scripts directory, too).