Replace nonstandard Arrayfind with _.find (closes #2871)

This commit is contained in:
Bryan Housel
2015-12-11 13:06:42 -08:00
parent ce3cbcc197
commit 9bc52598df

View File

@@ -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) {