- var req = new enyo.Ajax({
- url: baseURL + '/unsubscribe/' + username,
- method: 'POST',
- postBody: {
- username: blerg.API.username
- }
- });
- req.response(this, function(inSender, inResponse) {
- this.bubble('onSubscriptionStatus', {
- username: username,
- subscribed: inResponse.status != "success"
- });
- });
- req.go();