@@ -29,7 +29,7 @@ var VWO = (module.exports = integration('Visual Website Optimizer')
2929 . option ( 'listen' , false )
3030 . option ( 'experimentNonInteraction' , false )
3131 . option ( 'isSpa' , false )
32- . option ( 'trackOnlyABExperiments ' , false ) ) ;
32+ . option ( 'trackOnlyAbExperiments ' , false ) ) ;
3333
3434/**
3535 * The context for this integration.
@@ -139,7 +139,7 @@ VWO.prototype.roots = function() {
139139 experimentsTracked [ experimentId ] = true ;
140140 }
141141 } ) ;
142- } , this . options . trackOnlyABExperiments ) ;
142+ } , this . options . trackOnlyAbExperiments ) ;
143143} ;
144144
145145/**
@@ -151,13 +151,13 @@ VWO.prototype.roots = function() {
151151 * @return {Object }
152152 */
153153
154- function rootExperiments ( fn , trackOnlyABExperiments ) {
154+ function rootExperiments ( fn , trackOnlyAbExperiments ) {
155155 enqueue ( function ( ) {
156156 var data = { } ;
157157 var experimentIds = window . _vwo_exp_ids ;
158158 if ( ! experimentIds ) return fn ( ) ;
159159 each ( experimentIds , function ( experimentId ) {
160- var variationName = variation ( experimentId , trackOnlyABExperiments ) ;
160+ var variationName = variation ( experimentId , trackOnlyAbExperiments ) ;
161161 if ( variationName ) data [ experimentId ] = variationName ;
162162 } ) ;
163163 fn ( null , data ) ;
@@ -219,7 +219,7 @@ function isValidExperimentType(experiment) {
219219 * @return {String }
220220 */
221221
222- function variation ( id , trackOnlyABExperiments ) {
222+ function variation ( id , trackOnlyAbExperiments ) {
223223 var experiments = window . _vwo_exp ;
224224 if ( ! experiments ) return null ;
225225 var experiment = experiments [ id ] ;
@@ -231,8 +231,8 @@ function variation(id, trackOnlyABExperiments) {
231231 }
232232
233233 if (
234- trackOnlyABExperiments &&
235- ! isValidExperimentType ( experiment , trackOnlyABExperiments )
234+ trackOnlyAbExperiments &&
235+ ! isValidExperimentType ( experiment , trackOnlyAbExperiments )
236236 ) {
237237 return null ;
238238 }
0 commit comments