cowboy/jquery-hashchange — pull request #18 by mohamedmansour (2012-06-06 23:44:43+00:00)
Title: Fixes error when embedding the script into a page.

This script works well when including it into an external file, but it fails when embedding it in the same file. This fixes it by always escaping it, which will work in embedded and external documents.

The reason why it fails is because when you embed this script into the same page with "", browsers will treat that element as a closing script tag causing the rest of the code to be treated as text.

It is good practice to always escape "" tags when using them in JavaScript.