Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions baasbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ var BaasBox = (function() {
}

function setCurrentUser(userObject) {
if (userObject === null) {
return;
}
this.user = userObject;
// if the user is using Zepto, then local storage must be used (if supported by the current browser)
if (window.Zepto && window.localStorage) {
Expand Down Expand Up @@ -177,6 +174,9 @@ var BaasBox = (function() {
.fail(function (error) {
deferred.reject(error)
})
})
.fail(function(error) {
deferred.reject(error);
});
return deferred.promise();
},
Expand Down Expand Up @@ -672,4 +672,4 @@ var BaasBox = (function() {
return !$.cookie(key);
};

}));
}));