Permalink
Browse files

moving docs around

  • Loading branch information...
1 parent 537daf5 commit 9e9a18511235f97abb724c60ccd35277ed594e3c @caridy caridy committed Jan 14, 2013
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/store.js
View
@@ -32,7 +32,9 @@ var Store = {};
* @param {string} options.string Path to application directory.
* @param {object} options.context Runtime context to apply to all requests.
* @param {object} options.appConfig Overrides for the application.json file.
- * @param {string "skip"|"initial"|"full"} options.preload Whether to preload the application. Defaults to "full".
+ * @param {string "skip"|"initial"|"full"} options.preload Whether to preload
+ * the application. Defaults to "full". If you only care about appConfig
+ * and package.json you can use the 'skip' option which is faster.
* @return Y.mojito.ResourceStore
*/
Store.createStore = function(options) {
@@ -86,9 +88,6 @@ Store.createStore = function(options) {
if ('initial' === options.preload) {
store.preloadInitial();
} else if ('skip' !== options.preload) {
- // preload by default when the store is created, but
- // if you only care about appConfig and package.json
- // you probably should use 'skip' option.
store.preload();
}

0 comments on commit 9e9a185

Please sign in to comment.