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

Extracted theme loading to separate file. #652

Closed
wants to merge 1 commit into from

Conversation

jesperronn
Copy link

To avoid duplications I moved code out of main.js and core.js and into it's own file: themeLoader.js

Also created a setting for the default theme so that I could remove
the duplicated 'default' key from both main.js and core.js

NOTE that it appears to load the theme slightly later than before (onLayoutCreated event).
But I think this is a fair tradeoff to avoid duplicated definition of logic in core.js and main.js
@benweet benweet closed this Oct 3, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants