Add comment, remove anchors.

This commit is contained in:
Brad Dunbar
2014-05-17 08:54:35 -04:00
parent be176709f6
commit 5573ef72ca

View File

@@ -1422,8 +1422,10 @@
return path === this.root && !this.getSearch();
},
// In IE6, the hash fragment and search params are incorrect if the
// fragment contains `?`.
getSearch: function() {
var match = this.location.href.replace(/#.*$/, '').match(/\?.+$/);
var match = this.location.href.replace(/#.*/, '').match(/\?.+/);
return match ? match[0] : '';
},