diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-03-17 12:03:32 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-03-17 12:03:32 -0400 |
| commit | 5d978aecfb257842f9921cb8b746334d8a847193 (patch) | |
| tree | 140434142fc6b5471db94a43022c2c7d7983a199 /StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js | |
| parent | 89b2dd78571b26d09af1f9f820abfaeba3c864ba (diff) | |
build
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js')
| -rwxr-xr-x | StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js | 8 |
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, }) }, |
