|
|
|
@ -38,7 +38,7 @@ export default class SearcherView extends Pane {
|
|
|
|
|
searcher: { |
|
|
|
|
type: "bi.button_group", |
|
|
|
|
behaviors: { |
|
|
|
|
redmark: function () { |
|
|
|
|
redmark: () => { |
|
|
|
|
return true; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
@ -65,8 +65,8 @@ export default class SearcherView extends Pane {
|
|
|
|
|
}], |
|
|
|
|
value, |
|
|
|
|
}); |
|
|
|
|
this.matcher.on(BI.Controller.EVENT_CHANGE, (type, val, ob)=> { |
|
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|
this.matcher.on(BI.Controller.EVENT_CHANGE, (type, val, ob, ...args) => { |
|
|
|
|
this.fireEvent.apply(this, [BI.Controller.EVENT_CHANGE, type, val, ob, ...args]); |
|
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
|
this.fireEvent(SearcherView.EVENT_CHANGE, val, ob); |
|
|
|
|
} |
|
|
|
@ -94,8 +94,8 @@ export default class SearcherView extends Pane {
|
|
|
|
|
}], |
|
|
|
|
value, |
|
|
|
|
}); |
|
|
|
|
this.searcher.on(BI.Controller.EVENT_CHANGE, (type, val, ob)=> { |
|
|
|
|
this.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|
this.searcher.on(BI.Controller.EVENT_CHANGE, (type, val, ob, ...args) => { |
|
|
|
|
this.fireEvent.apply(this, [BI.Controller.EVENT_CHANGE, type, val, ob, ...args]); |
|
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
|
this.fireEvent(BI.SearcherView.EVENT_CHANGE, val, ob); |
|
|
|
|
} |
|
|
|
|