Created
December 1, 2009 13:33
-
-
Save padolsey/246281 to your computer and use it in GitHub Desktop.
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
| new SiteTraverser({ | |
| limit: 100, | |
| check: function(source){ | |
| return /<title>/.test(source) ? | |
| new SiteTraverser.Success("Title Found!") : new SiteTraverser.Failure("No Title!"); | |
| }, | |
| httpError: function(xhr){ | |
| return new SiteTraverser.Failure("Request failed.", 'Error code: ' + xhr.status); | |
| } | |
| }).go(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment