applicious_utils 0.1.20 → 0.1.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,36 +7,35 @@ class AppliciousFacebook extends AppliciousCore
7
7
  FB_STATUS: ''
8
8
 
9
9
  constructor: ->
10
- AP.log 'Applicious [AP::FB] Loaded'
10
+ @log 'Applicious [AP::FB] Loaded'
11
11
 
12
12
 
13
- init: (APP_ID) ->
14
- @FB_APP_ID = APP_ID
15
- AP.log 'Initialised [AP::FB]', @FB_APP_ID
13
+ init: (@FB_APP_ID) ->
14
+ @log 'Initialised [AP::FB]', @FB_APP_ID
16
15
 
17
16
  login: (permissions = '', callback) ->
18
- responseHandler = (response) ->
17
+ responseHandler = (response) =>
18
+
19
19
  if response.session
20
20
  try
21
21
  @FB_STATUS = response.status
22
22
  @FB_SESSION = response.session
23
23
  @FB_UID = response.session.uid
24
24
  catch error
25
- AP.log 'Error', error
25
+ @log 'Error', error
26
26
 
27
- if response.session
28
27
  if permissions && permissions != ''
29
28
  if permissions == response.perms
30
- AP.log 'Login accepted - Permissions Accepted', response
29
+ @log 'Login accepted - Permissions Accepted', response
31
30
  callback true, response
32
31
  else
33
- AP.log 'Login rejected - Permissions Rejected', response
32
+ @log 'Login rejected - Permissions Rejected', response
34
33
  callback false, response
35
34
  else
36
- AP.log 'Login accepted - No Permissions', response
35
+ @log 'Login accepted - No Permissions', response
37
36
  callback true, response
38
37
  else
39
- AP.log 'Login rejected', response
38
+ @log 'Login rejected', response
40
39
  callback false, response
41
40
  return
42
41
 
@@ -1,3 +1,3 @@
1
1
  module AppliciousUtils
2
- VERSION = "0.1.20"
2
+ VERSION = "0.1.21"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: applicious_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: