Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

Update nautilus config paths #8

Open
lusac opened this issue Jan 31, 2017 · 0 comments
Open

Update nautilus config paths #8

lusac opened this issue Jan 31, 2017 · 0 comments

Comments

@lusac
Copy link

lusac commented Jan 31, 2017

Would be great if I could update update nautilus config paths after nautilus inicialization.

Example:

// Initial
nautilus.config({
paths: {
'jquery': 'libs/jquery.js',
'waterfall': 'http://cdnjs.cloudflare.com/ajax/libs/waterfall.js/1.0.2/waterfall.min.js'
}
});

// Add new path
nautilus.config.paths.extend({ 'newSpacename': 'my/new/path.js' })

// Then
nautilus(['newSpacename'], function() {
console.log('Hello!');
});

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

No branches or pull requests

1 participant