Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sendGETRequest(url, cb)
- {
- if (TESTING)
- requestIsSent("GET", url, undefined, cb);
- else
- $.get(url).done(cb);
- }
- function sendPOSTRequest(url, args, cb)
- {
- if (TESTING)
- requestIsSent("POST", url, args, cb);
- else
- $.post(url, args).done(cb);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement