Was just trying to isolate the createMessage method so I can test it. The only part that's different is the following lines: <a href='https://gist.github.com/unwriter/a300ff33f313fba6ded2619b549fd5ec#file-baedemo-html-L88-L95'>https://gist.github.com/unwriter/a300ff33f313fba6ded2619b549fd5ec#file-baedemo-html-L88-L95</a> (also added <a href='https://gist.github.com/unwriter/a300ff33f313fba6ded2619b549fd5ec#file-baedemo-html-L11-L21'>https://gist.github.com/unwriter/a300ff33f313fba6ded2619b549fd5ec#file-baedemo-html-L11-L21</a> for handling visible moneybutton in case you pass an HTML element object instead of imb object)
Was just trying to isolate the createMessage method so I can test it. The only part that's different is the following lines: <a href='https://gist.github.com/unwriter/a300ff33f313fba6ded2619b549fd5ec#file-baedemo-html-L88-L95'>https://gist.github.com/unwriter/a300ff33f313fba6ded2619b549fd5ec#file-baedemo-html-L88-L95</a> (also added <a href='https://gist.github.com/unwriter/a300ff33f313fba6ded2619b549fd5ec#file-baedemo-html-L11-L21'>https://gist.github.com/unwriter/a300ff33f313fba6ded2619b549fd5ec#file-baedemo-html-L11-L21</a> for handling visible moneybutton in case you pass an HTML element object instead of imb object)