medialize/URI.js — pull request #52 by manuelcabral (2012-11-09 21:26:42+00:00)
Title: Fragment query error on URLs without fragment

The functions `fragment()`, `addFragment()` and `removeFragment()` cause an error when used on an URL without fragment. These checks prevent that.