Skip to content
Snippets Groups Projects
Commit a6848d25 authored by khawkins98's avatar khawkins98
Browse files

Correctly access options

parent ec0e6a96
No related branches found
No related tags found
No related merge requests found
......@@ -44,14 +44,14 @@
}
};
if (analyticsLogging === true && delay < 200) {
delay = 150; // don't burn the GA api quota
}
// Overwrite default settings with user provided ones. Declare some vars.
var options = $.extend(defaults, settings);
var keyDelay, filter, child;
if (options.analyticsLogging === true && options.delay < 200) {
options.delay = 150; // don't burn the GA api quota
}
// Cache our wrapper element and find our target list.
var wrap = $(this);
var filterTarget = wrap.find('ul, ol, table,div');
......@@ -170,7 +170,7 @@
$(this).hide();
})
} else {
if (analyticsLogging) {
if (aoptions.nalyticsLogging) {
if ($('body').hasClass('google-analytics-loaded')) {
analyticsTrackInteraction(filter,'Live filter search');
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment