Florian Müllner db81ef3e95 dash: Fix some JS warnings
We currently use "array[index]" to test whether an array has an
element at index before using it. However nowadays gjs warns about
accessing non-existent array elements, so the test itself already
produces a warning. Avoid this by checking the array length before
using an index to access an element.

https://bugzilla.gnome.org/show_bug.cgi?id=781471
2017-07-13 17:25:10 +02:00
..
2017-07-13 17:25:10 +02:00
2017-07-13 17:25:10 +02:00
2017-04-11 01:39:03 +02:00
2017-07-13 17:25:10 +02:00
2017-05-11 14:46:12 +02:00
2017-07-13 17:25:10 +02:00
2016-11-04 16:08:10 +01:00
2017-02-15 23:20:14 +01:00
2017-07-13 17:25:10 +02:00