@material/mwc-base
Advanced tools
Comparing version 0.26.0-canary.c3aa844c.0 to 0.26.0-canary.ca0a674f.0
@@ -14,3 +14,3 @@ /** | ||
/** | ||
* lit-element uses internal properties with two leading underscores to | ||
* lit uses internal properties with two leading underscores to | ||
* provide storage for accessors | ||
@@ -31,2 +31,8 @@ */ | ||
} | ||
// TODO(b/202853219): Remove this check when internal tooling is | ||
// compatible | ||
// tslint:disable-next-line:no-any bail if applied to internal generated class | ||
if (prototype.dispatchWizEvent) { | ||
return descriptor; | ||
} | ||
const wrappedDescriptor = { | ||
@@ -38,4 +44,5 @@ configurable: true, | ||
const options = constructor.getPropertyOptions(name); | ||
// the attribute will be a string at runtime | ||
attribute = options.attribute; | ||
// if attribute is not a string, use `name` instead | ||
attribute = | ||
typeof options.attribute === 'string' ? options.attribute : name; | ||
} | ||
@@ -79,3 +86,5 @@ if (this.hasAttribute(attribute)) { | ||
*/ | ||
export function ariaProperty(protoOrDescriptor, name, descriptor) { | ||
export function ariaProperty(protoOrDescriptor, name, | ||
// tslint:disable-next-line:no-any any is required as a return type from decorators | ||
descriptor) { | ||
if (name !== undefined) { | ||
@@ -82,0 +91,0 @@ return tsDecorator(protoOrDescriptor, name, descriptor); |
{ | ||
"name": "@material/mwc-base", | ||
"version": "0.26.0-canary.c3aa844c.0", | ||
"version": "0.26.0-canary.ca0a674f.0", | ||
"description": "", | ||
@@ -29,3 +29,3 @@ "main": "base-element.js", | ||
}, | ||
"gitHead": "a792c732afb00bf097879fdcd7a1ac2a0c5d9506" | ||
"gitHead": "b8e99d19dfc1b6d5062ada3345d461e9a77f18f1" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51048
495