Ignore:
Timestamp:
06/23/13 21:46:11 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Working deployment to Heroku.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client/store/request.js

    r463 r464  
    1010        var dfd = new Deferred();
    1111        if ( authenticated ) {
    12             request(url,options).response.then(function(response){
    13                 console.log(response);
    14             }, function(error){
     12            var req = request(url,options);
     13
     14            // forward successfull response
     15            req.then(function(data){
     16                dfd.resolve(data);
     17            });
     18           
     19            req.response.then(function(response){
     20                // if we are recovering, launch other requests
     21            }, function(error) {
    1522                if ( error.response.status === 401 ) {
    1623                    queue.push({
Note: See TracChangeset for help on using the changeset viewer.