A bug in custom condition

11 views
Skip to first unread message

Snir Barzilay

unread,
Jan 14, 2020, 5:57:35 AM1/14/20
to Minno.js
Hi all,

just came across a small bug in the API  description of miTime under custom condition. 

It writes

function: This options is deprecated. use custom instead.

custom: It is also possible to create a custom condition:

{type:'custom', value:function(condtion, inputData, trial){
    // do your mojo here and return true or false
}}

But value needs to be replaced with fn so that it will work.

Best,

Snir


elad...@gmail.com

unread,
Jan 15, 2020, 3:59:48 AM1/15/20
to Minno.js
Hi Snir,

Thanks for the report.
The documentation has been updated accordingly: 

best,
Elad
Reply all
Reply to author
Forward
0 new messages