mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-26 07:23:40 +00:00
Replace nonstandard Arrayfind with _.find (closes #2871)
This commit is contained in:
@@ -251,7 +251,7 @@ iD.Background = function(context) {
|
||||
backgroundSources.unshift(iD.BackgroundSource.None());
|
||||
|
||||
if (!chosen && extent) {
|
||||
best = this.sources(extent).find(function(s) { return s.best(); });
|
||||
best = _.find(this.sources(extent), function(s) { return s.best(); });
|
||||
}
|
||||
|
||||
if (chosen && chosen.indexOf('custom:') === 0) {
|
||||
|
||||
Reference in New Issue
Block a user