firebase / geofire-js

GeoFire for JavaScript - Realtime location queries with Firebase
MIT License
1.44k stars 345 forks source link

Fix unbound 'this' in setTimeout function #187

Closed ronhe closed 4 years ago

ronhe commented 4 years ago

Description

Fixed a trivial bug of an unbound this in setTimeout call, by wrapping the function argument with an arrow function.

coveralls commented 4 years ago

Coverage Status

Coverage decreased (-2.1%) to 92.453% when pulling 5e1f5673e10e8a356e9168f80281398c85ffce07 on ronhe:fix-geoquery-settimeout into cdc7cacadb8a1467f21f8af0fd64c079aec3630e on firebase:master.

jhuleatt commented 4 years ago

Thanks @ronhe!