aboutsummaryrefslogtreecommitdiff
path: root/web/simple
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-26 02:16:33 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-01-26 02:16:33 +1300
commitb32387fe01dafc1e85509c8e5312831d9cd0aef2 (patch)
tree27ac63ee43c6ca2866dfb7194569f25c4d4670a6 /web/simple
parentfa55a66f7aa89fbb2fbdd1a81af1b03f1fbac109 (diff)
downloadtrackermap-web-b32387fe01dafc1e85509c8e5312831d9cd0aef2.tar.gz
trackermap-web-b32387fe01dafc1e85509c8e5312831d9cd0aef2.tar.bz2
trackermap-web-b32387fe01dafc1e85509c8e5312831d9cd0aef2.zip
Fix find method
Diffstat (limited to 'web/simple')
-rw-r--r--web/simple/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/simple/app.js b/web/simple/app.js
index cc83c7dc..ed889f19 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;
}
}