test events for button / ui binding

This commit is contained in:
Stewart Allen 2021-12-09 23:12:35 -05:00
commit a1539d9ae7
3 changed files with 115 additions and 123 deletions

View file

@ -50,8 +50,8 @@ class Broker {
// return function bound to a topic
bind(topic, message, options) {
let broker = this;
return function(msg = message, opt = options) {
broker.publish(topic, msg, opt);
return function(msg, opt) {
broker.publish(topic, message || msg, options || opt);
}
}
}