mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Add comment, remove anchors.
This commit is contained in:
@@ -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] : '';
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user