test events for button / ui binding
This commit is contained in:
parent
dc2b0e014f
commit
a1539d9ae7
3 changed files with 115 additions and 123 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue