0

This method syntax seems to be little strange.

Here is the method declaration. Some normal javascript method implementation.

sendHttpRequest: function (aUri, aUploadData, aContentType, aExisting, aSetupChannelFunc, aFailureFunc, aUseStreamLoader = true) {
    //method implementation
}

This is the actual usage. There what does mean by using ()=>{//some statements} as a parameter?

function someFunction(){
    this.calendar.sendHttpRequest(requestUri, queryXml, MIME_TEXT_XML, null, (channel) => {
       //some statements
        return this;
    }, () => {
        if (this.setA && this.setB) {
       //some statements
        }
    }, false);

//someFunction's statements

}
11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.