From b32387fe01dafc1e85509c8e5312831d9cd0aef2 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 26 Jan 2017 02:16:33 +1300 Subject: Fix find method --- web/simple/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web') diff --git a/web/simple/app.js b/web/simple/app.js index cc83c7d..ed889f1 100644 --- a/web/simple/app.js +++ b/web/simple/app.js @@ -19,8 +19,8 @@ if (!Array.prototype.find) { value: function(predicate) { var value; for (var i = 0; i < this.length; i++) { - value = list[i]; - if (predicate.call(arguments[1], value, i, list)) { + value = this[i]; + if (predicate.call(arguments[1], value, i, this)) { return value; } } -- cgit v1.2.3