From b12a0b6a3b6e835fb350a975d3ad9a0cc05857c3 Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Tue, 6 Nov 2018 15:10:57 -0800 Subject: [PATCH] Minor renaming based on review. --- lib/legacy/class.html | 46 +++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/lib/legacy/class.html b/lib/legacy/class.html index 41f4204bc7..e05dd716d4 100644 --- a/lib/legacy/class.html +++ b/lib/legacy/class.html @@ -24,20 +24,20 @@ attributeChanged: true, }; - const noCopyProps = Object.assign({ + const excludeProps = Object.assign({ behaviors: true }, metaProps); - const filteredProps = Object.assign({ + const lifecycleProps = Object.assign({ listeners: true, hostAttributes: true }, metaProps); function copyProperties(source, target) { for (let p in source) { - // NOTE: cannot copy `noCopyProps` methods onto prototype at least because + // NOTE: cannot copy `excludeProps` methods onto prototype at least because // `super.ready` must be called and is not included in the user fn. - if (!(p in noCopyProps)) { + if (!(p in excludeProps)) { let pd = Object.getOwnPropertyDescriptor(source, p); if (pd) { Object.defineProperty(target, p, pd); @@ -95,18 +95,18 @@ // If lifecycle is called (super then me), order is // (1) C.created, (2) A.created, (3) B.created, (4) element.created // (again same as 1.x) - function copyAndFilterBehaviors(proto, behaviors, lifecycle) { + function applyBehaviors(proto, behaviors, lifecycle) { for (let i=0; i