Element.view is called twice each time an element is constructed. I found this while using code like this example from the docs:
var view = stache("Hello {{name}}");
var MyApp = class extends Element {
static get view() {
return view;
}
};
This call should use Object.prototype.hasOwnProperty.call(Element, 'view') to avoid actually calling the function.
Element.viewis called twice each time an element is constructed. I found this while using code like this example from the docs:This call should use
Object.prototype.hasOwnProperty.call(Element, 'view')to avoid actually calling the function.