Here is a code snippet that uses delegate:
<pre> $.ajax(this.validateURL, {
type: "post",
url: this.validateURL,
data: JSON.stringify(i),
contentType: "application/json; charset=utf-8",
dataType: "json",
success: i => t.procedure.set("GenarateSample", !0),
i.Success? (i.Message.length > 3 ? this.confirmarprocedure(t) : this.adicionarprocedureNaGrid(t, !1), !0) : (n.Show(i.Message, NotificationType.Error), !1),
error: n => {
error_handler(n)
}
}) </pre>
If the delegate is removed, the minified version looks like this:
$.ajax(this.validateURL, { type: "post", url: this.validateURL, data: JSON.stringify(i), contentType: "application/json; charset=utf-8", dataType: "json", success: function (i) { return t.procedure.set("GenarateSample", !0), i.Success? (i.Message.length > 3 ? this.confirmarprocedure(t) : this.adicionarprocedureNaGrid(t, !1), !0) : (n.Show(i.Message, NotificationType.Error), !1) }, error: n => { error_handler(n) } })