summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
diff options
context:
space:
mode:
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,
})
},