mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Merge pull request #2637 from kjbekkelund/remove-unnecessary-variable
Removed unnecessary variable 'matched'
This commit is contained in:
@@ -1454,13 +1454,12 @@
|
||||
// returns `false`.
|
||||
loadUrl: function(fragmentOverride) {
|
||||
var fragment = this.fragment = this.getFragment(fragmentOverride);
|
||||
var matched = _.any(this.handlers, function(handler) {
|
||||
return _.any(this.handlers, function(handler) {
|
||||
if (handler.route.test(fragment)) {
|
||||
handler.callback(fragment);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
return matched;
|
||||
},
|
||||
|
||||
// Save a fragment into the hash history, or replace the URL state if the
|
||||
|
||||
Reference in New Issue
Block a user