But it seems when I have a situation like:
pre
response.error("Some response content #1.");
...
response.success("Some response content #2.");
...
response.error("Some response content #3.");
/pre
Only "content #3" is returned. I'm looking for a way to end the script immediately when I want to return a error.
Right now I have a lot of
pre
if (!abort) {
...
}
...
if (!abort) {
...
}
...
/pre
And I'm looking for a cleaner way to code the scripts.