Permalink
Browse files

when retrieving app details for the app with current id, saves details.

  • Loading branch information...
1 parent 42c0032 commit 3a4bb81bad3ca47ab2e75735b0ec9d127d5b6855 @bnjbvr committed Apr 7, 2013
Showing with 9 additions and 2 deletions.
  1. +9 −2 lib/app.coffee
View
@@ -26,8 +26,15 @@ class Application extends SubModule
needAuth: true
auth: @client.credentials.app
- rcb = utils.makeGenericCallback cb
- @call reqParam, rcb
+ @call reqParam, (err, h, data) =>
+ if err
+ cb err
+ return
+
+ appInfo = JSON.parse data
+ if @id and appInfo.id == @id
+ @info = appInfo
+ cb null, appInfo
@
update: ( appInfo, rest... ) =>

0 comments on commit 3a4bb81

Please sign in to comment.