Created
August 30, 2012 08:21
-
-
Save medikoo/3524117 to your computer and use it in GitHub Desktop.
Title router
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
patterns.some(function (data) { | |
var match; | |
if (match = url.match(data.pattern)) { | |
location.title = data.fn(match); | |
return true; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment