Skip to content

Commit

Permalink
stupid parse user null bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Arush Sehgal committed Oct 5, 2013
1 parent aca7bc9 commit a187d9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/scripts/controllers/facebook-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ angular.module('facebook')


$scope.facebookCtrl = {
fbAuthData : Parse.User.current().get('authData'),
response : {}
};

if(Parse.User.current()) {
$scope.facebookCtrl.fbAuthData = Parse.User.current().get('authData');
}


$scope.fbConnect = function() {
Expand Down

0 comments on commit a187d9a

Please sign in to comment.