Uploaded image for project: 'Nuxeo JS Client'
  1. Nuxeo JS Client
  2. NXJS-36

Expose jqXHR-Promise

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.1
    • Component/s: jQuery

      Description

      jQuery.ajax returns a {{ jqXHR-Promise}}, returning it from the client methods will allow users to do the following:

      var request = client.request('...').get();
      request.then(function(){
          //Success
      },
      function(){
          //Failure
      });
      

        Attachments

          Activity

            People

            • Assignee:
              troger Thomas Roger
              Reporter:
              troger Thomas Roger
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: