From 9bc52598df04aaf11b0468a4792e448a8e0f4847 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 11 Dec 2015 13:06:42 -0800 Subject: [PATCH] Replace nonstandard Array`find` with `_.find` (closes #2871) --- js/id/renderer/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/renderer/background.js b/js/id/renderer/background.js index b63f7b559..ce478e220 100644 --- a/js/id/renderer/background.js +++ b/js/id/renderer/background.js @@ -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) {