From 08ce666f7721c2542b5b62b9303e4490b152b121 Mon Sep 17 00:00:00 2001 From: Ed Spencer Date: Sat, 11 Feb 2012 11:07:11 -0800 Subject: [PATCH] Small doc tweaks --- app.js | 13 +++++-------- app/store/Pictures.js | 3 +++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app.js b/app.js index 106be28..188ec55 100644 --- a/app.js +++ b/app.js @@ -1,11 +1,3 @@ -/* - * This app uses a Carousel and a JSON-P proxy so make sure they're loaded first - */ -Ext.require([ - 'Ext.carousel.Carousel', - 'Ext.data.proxy.JsonP' -]); - /** * Our app is pretty simple - it just grabs the latest images from NASA's Astronomy Picture Of the Day * (http://apod.nasa.gov/apod/astropix.html) and displays them in a Carousel. This file drives most of @@ -24,6 +16,11 @@ Ext.application({ stores: ['Pictures'], views: ['Picture'], + requires: [ + 'Ext.carousel.Carousel', + 'Ext.data.proxy.JsonP' + ], + launch: function() { var titleVisible = false, info, carousel; diff --git a/app/store/Pictures.js b/app/store/Pictures.js index 61deb05..2356e83 100644 --- a/app/store/Pictures.js +++ b/app/store/Pictures.js @@ -1,3 +1,6 @@ +/** + * Grabs the APOD RSS feed from Google's Feed API, passes the data to our Model to decode + */ Ext.define('apod.store.Pictures', { extend: 'Ext.data.Store',