Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
view(fn = null) {
if (!isFunction(fn)) {
throw new Error(
`Value on argument variable "template" must be a function`,
);
}
this._view = fn;
}
view(fn = null) {
if (!utils.isFunction(fn)) {
throw new Error(
`Value on argument variable "template" must be a function`,
);
}
this._view = fn;
}