Skip to content

Commit 1fb639b

Browse files
Paul Boocockpaulboocock
authored andcommitted
Fix submit_form event not emitting when submitting a form (close #856)
1 parent 33da037 commit 1fb639b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/js/forms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function FormTrackingManager(core, trackerId, contextAdder) {
9797
function getInnerFormElements(elt) {
9898
var innerElements = [];
9999
forEach(innerElementTags, function (tagname) {
100-
var trackedChildren = elt.getElementsByTagName(tagname).filter(function (child) {
100+
var trackedChildren = Array.prototype.filter.call(elt.getElementsByTagName(tagname), function (child) {
101101
return child.hasOwnProperty(trackingMarker);
102102
});
103103

src/js/snowplow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function Snowplow(asynchronousQueue, functionName) {
129129
do {
130130
now = new Date();
131131
if (
132-
mutSnowplowState.outQueues.filter(function (queue) {
132+
Array.prototype.filter.call(mutSnowplowState.outQueues, function (queue) {
133133
return queue.length > 0;
134134
}).length === 0
135135
) {

0 commit comments

Comments
 (0)