summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-12-11 03:13:42 -0600
committerJules Laplace <jules@okfoc.us>2015-12-11 03:13:42 -0600
commitc84192bc43906913d8861b9b7807976b19e544fb (patch)
tree1ae1761670ace94f780550689360d25dfd51791d /StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
parent053473394e6e0990c68a924adbb7c7d75f35973d (diff)
build
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js b/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
index 9b49abbd..51881aa5 100755
--- a/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
@@ -27,13 +27,17 @@ var BlogView = View.extend({
app.archive.populate(data.archive)
this.loader.preloadImage(data.hub[0].image[0].uri, function(img){
app.hub.populate(data.hub)
- })
+ }.bind(this))
this.loader.preloadImage(data.story[0].image.uri, function(img){
app.story.populate(data.story)
- })
+ setTimeout(function(){
+ this.loader.preloadImage(data.story[1].image.uri)
+ this.loader.preloadImage(data.story[2].image.uri)
+ }.bind(this), 2000)
+ }.bind(this))
+
data.page.forEach(function(page){
app[page.tag].populate(page)
-
})
app.collection.setCollectionName( data.store[0].collection )