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