-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
Right now if you create a component and call canReflect.getOwnKeys
, you get a bunch of keys back:
import { Component, Reflect } from "//unpkg.com/can@5/core.mjs";
const C = Component.extend({
tag: "a-pp",
view: `
Hello CanJS
`,
ViewModel: {}
});
const c = new C();
Reflect.getOwnKeys(c); // ["__inSetup", "_initialArgs", "element", "viewModel", "nodeList", "_torndown"]
... these aren't really useful.
Also, this causes CanJS Devtools to throw an exception because it tries to do something basically like this:
const v = new DefineMap({});
Reflect.updateDeep(v, { __inSetup: false });