xjsframework / xjsframework.github.io

XJS Framework website
http://xjsframework.github.io
1 stars 2 forks source link

Document suggested pattern for initializing a source #16

Closed mikeybanez closed 8 years ago

mikeybanez commented 8 years ago

We will need to create a tutorial (or we can possibly use quick start as well, let's find a logical place for this) where we can explain our "one-time-only" initialization for sources.

Example: a source which attempts to make itself "full-screen" should only do so once. It shouldn't try doing it on refresh, or when the application restarts, in order to preserve any user settings.

mikeybanez commented 8 years ago

This will be important for xjsframework/xjs#85 as initialization will become a bit tricky when global sources are involved.

mikeybanez commented 8 years ago

@virn for this one, @SML-MeSo can give more details.

Make sure to update all relevant parts in the tutorials section to reflect these changes. You can coordinate the changes in this item together with #17 so that everything is cohesive.

virn commented 8 years ago

@SML-MeSo I've made the changes on this together with #17. Kindly review the change and possible things that I've missed.

mikeybanez commented 8 years ago

Here are some changes that need to be done for this section of the tutorial (this does not include the rest of the page that is for #17):