This file contains 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
function escapedRx (text, flags) | |
{ | |
return new RegExp(text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), flags || ''); | |
} |
This file contains 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
/** | |
* Assume our client object manages all communication with the server and other wonderful stuff | |
*/ | |
var Client = function() { | |
var that = {}; | |
that.ping = function(limit, cb) { | |
var results = []; | |
(function _doPing(iteration) { |
NewerOlder