ensure other parameters don't get passed to TemplateView parent ctors
This commit is contained in:
parent
1f0cb542c8
commit
1fea14dd10
2 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,11 @@ limitations under the License.
|
|||
import {TemplateView} from "../../../general/TemplateView";
|
||||
|
||||
export class AnnouncementView extends TemplateView {
|
||||
// ignore other arguments
|
||||
constructor(vm) {
|
||||
super(vm);
|
||||
}
|
||||
|
||||
render(t) {
|
||||
return t.li({className: "AnnouncementView"}, t.div(vm => vm.announcement));
|
||||
}
|
||||
|
|
|
@ -18,6 +18,11 @@ import {TemplateView} from "../../../general/TemplateView";
|
|||
import {spinner} from "../../../common.js";
|
||||
|
||||
export class GapView extends TemplateView {
|
||||
// ignore other argument
|
||||
constructor(vm) {
|
||||
super(vm);
|
||||
}
|
||||
|
||||
render(t) {
|
||||
const className = {
|
||||
GapView: true,
|
||||
|
|
Reference in a new issue