Fixed issue with passing array to event trigger - cannot pass an array, must be var as it is by reference.