Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
i-bem: setMod should convert non-boolean value to string #890
block.setMod('blah', 2); console.log(typeof block.getMod('blah')); // number block.setMod('blah', '2'); console.log(typeof block.getMod('blah')); // string
Current behaviour looks weird and it seems that any value in the example above may fire several onSetMod-handlers (see buildModFnName()).
And the same goes to