Ensure properties is an object
Andrew Kane
committed Aug 23, 2016
commit 7954dcda4e653f7d5f849573e07a0b43c5321417
Showing 1
changed file with
1 additions
and 1 deletions
vendor/assets/javascripts/ahoy.js
+1
-1
| @@ | @@ -294,7 +294,7 @@ |
| var event = { | |
| id: generateId(), | |
| name: name, | |
| - | properties: properties, |
| + | properties: properties || {}, |
| time: (new Date()).getTime() / 1000.0 | |
| }; | |