From 521ed3de75b8fdfa12858313eac6f790a7db423b Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Fri, 14 Apr 2017 15:26:30 -0700 Subject: [PATCH] Rename `setPrivate` -> `setReadOnly` --- lib/mixins/property-effects.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mixins/property-effects.html b/lib/mixins/property-effects.html index 8e7d182283..90879a117c 100644 --- a/lib/mixins/property-effects.html +++ b/lib/mixins/property-effects.html @@ -1479,14 +1479,14 @@ * * @param {Object} props Bag of one or more key-value pairs whose key is * a property and value is the new value to set for that property. - * @param {boolean=} setPrivate When true, any private values set in + * @param {boolean=} setReadOnly When true, any private values set in * `props` will be set. By default, `setProperties` will not set * `readOnly: true` root properties. * @public */ - setProperties(props, setPrivate) { + setProperties(props, setReadOnly) { for (let path in props) { - if (setPrivate || !this.__readOnly || !this.__readOnly[path]) { + if (setReadOnly || !this.__readOnly || !this.__readOnly[path]) { //TODO(kschaaf): explicitly disallow paths in setProperty? // wildcard observers currently only pass the first changed path // in the `info` object, and you could do some odd things batching