     # Return the current value for window.location.hash without any
     # leading hash keys (does not remove leading slashes!).
     getHash: (url = location.hash) ->
-        url.replace(@RegExpCache.extractHash, '$1')
+        String(url).replace(@RegExpCache.extractHash, '$1')
     
     # Takes whatever window.location.hash currently is and tries
     # to resolve that hash.

    post: shortcut 'post'
    put: shortcut 'put'
    delete: shortcut 'delete'


# Export Simrou to the global namespace

###*
* @preserve Simrou v1.3.5 - Released under the MIT License.
* Copyright (c) 2012 büro für ideen, www.buero-fuer-ideen.de
###

