Created
March 18, 2013 04:41
-
-
Save akgupta/5185132 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lix.getBucket('mobile.abtest1', 'memberId:23', function(err, bucket) { | |
if(bucket === 'A') { | |
// do A | |
AsyncCallForA(req, handleAFn) | |
} else if(bucket === 'B') { | |
// do B | |
AsyncCallForB(req, handleBFn) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment