summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-03-17 12:03:32 -0400
committerJules Laplace <jules@okfoc.us>2016-03-17 12:03:32 -0400
commit5d978aecfb257842f9921cb8b746334d8a847193 (patch)
tree140434142fc6b5471db94a43022c2c7d7983a199 /StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
parent89b2dd78571b26d09af1f9f820abfaeba3c864ba (diff)
build
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js8
1 files changed, 5 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 64a65b09..06e051cb 100755
--- a/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
@@ -4,15 +4,17 @@ var BlogView = View.extend({
loaded: false,
initialize: function(){
this.loader = new Loader ()
- this.fetch()
},
- fetch: function(){
+ fetch: function(fn){
$.ajax({
method: "GET",
// url: sdk.env == 'test' ? '/db.json' : "http://stone.sup.land/db.json",
url: "http://stone.sup.land/db.json",
- success: this.success.bind(this),
+ success: function(data){
+ this.success(data)
+ fn && fn()
+ }.bind(this),
cache: true,
})
},