Last active
August 29, 2015 14:00
-
-
Save AlphaGit/11303932 to your computer and use it in GitHub Desktop.
Get pending requests for fakehr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fakehr.requests.filter(function (r) { | |
return r.readyState != 4; | |
}).map(function (r) { | |
return r.method + ' ' + r.url | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getPending = function() { | |
return fakehr.requests.filter(function (r) { | |
return r.readyState != 4; | |
}).map(function (r) { | |
return r.method + ' ' + r.url | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment