@@ -90,7 +90,7 @@ return /******/ (function(modules) { // webpackBootstrap
9090
9191 var React = _interopRequire ( __webpack_require__ ( 2 ) ) ;
9292
93- var getExposedExperimentVariation = __webpack_require__ ( 3 ) . getExposedExperimentVariation ;
93+ var ExperimentEnrollment = _interopRequire ( __webpack_require__ ( 3 ) ) ;
9494
9595 var suppressAutoExposureLogging = __webpack_require__ ( 5 ) . suppressAutoExposureLogging ;
9696
@@ -142,7 +142,7 @@ return /******/ (function(modules) { // webpackBootstrap
142142 } ,
143143
144144 renderExposedVariation : function renderExposedVariation ( ) {
145- var variationComponent = getExposedExperimentVariation ( this . props . children , this . state . exposedVariation ) ;
145+ var variationComponent = ExperimentEnrollment . getExposedExperimentVariation ( this . props . children , this . state . exposedVariation ) ;
146146
147147 if ( variationComponent . exposedVariation ) {
148148 this . props . experimentClass . logExposure ( ) ;
@@ -174,6 +174,16 @@ return /******/ (function(modules) { // webpackBootstrap
174174 var DEFAULT_EXPERIMENT_COMPONENT = __webpack_require__ ( 4 ) . DEFAULT_EXPERIMENT_COMPONENT ;
175175
176176 module . exports = {
177+
178+ enrollInExperiment : function enrollInExperiment ( component , child , variationName ) {
179+ if ( variationName && child . props . name === variationName ) {
180+ component . exposedVariation = child ;
181+ } else if ( child . props . displayName === DEFAULT_EXPERIMENT_COMPONENT ) {
182+ component . defaultComponent = child ;
183+ }
184+ return component ;
185+ } ,
186+
177187 getExposedExperimentVariation : function getExposedExperimentVariation ( childrenComponents , variationName ) {
178188 var _this = this ;
179189
@@ -188,15 +198,6 @@ return /******/ (function(modules) { // webpackBootstrap
188198
189199 return _this . enrollInExperiment ( component , child , variationName ) ;
190200 } , { } ) ;
191- } ,
192-
193- enrollInExperiment : function enrollInExperiment ( component , child , variationName ) {
194- if ( variationName && child . props . name === variationName ) {
195- component . exposedVariation = child ;
196- } else if ( child . props . displayName === DEFAULT_EXPERIMENT_COMPONENT ) {
197- component . defaultComponent = child ;
198- }
199- return component ;
200201 }
201202 } ;
202203
@@ -243,7 +244,7 @@ return /******/ (function(modules) { // webpackBootstrap
243244
244245 var DEFAULT_EXPERIMENT_COMPONENT = __webpack_require__ ( 4 ) . DEFAULT_EXPERIMENT_COMPONENT ;
245246
246- var getExposedExperimentVariation = __webpack_require__ ( 3 ) . getExposedExperimentVariation ;
247+ var ExperimentEnrollment = _interopRequire ( __webpack_require__ ( 3 ) ) ;
247248
248249 var suppressAutoExposureLogging = __webpack_require__ ( 5 ) . suppressAutoExposureLogging ;
249250
@@ -272,7 +273,7 @@ return /******/ (function(modules) { // webpackBootstrap
272273 component . defaultComponent = child ;
273274 } else if ( child . props . isEnrolled ) {
274275 var experimentParam = experiment . get ( child . props . param ) ;
275- if ( experimentParam && getExposedExperimentVariation ( child . props . children , experimentParam ) . exposedVariation ) {
276+ if ( experimentParam && ExperimentEnrollment . getExposedExperimentVariation ( child . props . children , experimentParam ) . exposedVariation ) {
276277 component . exposedExperiment = child ;
277278 }
278279 }
0 commit comments