Add chaining API

pull/290/head
Lennart Kats 2016-04-14 11:15:47 +00:00
rodzic a07928f48f
commit 3e1e0c054a
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -34,7 +34,9 @@ define(function(require, exports, module) {
});
function create(name, choices, options) {
return outplan.create(name, choices, options);
var experiment = outplan.create(name, choices, options);
experiment.expose = expose.bind(null, name);
return experiment;
}
function expose(experimentName, overrideUserId, options) {