From f6f0a3b7aee9ffa39cef4ecfa9f7f01f6b731c80 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Thu, 7 Sep 2017 15:32:25 -0700 Subject: [PATCH] a few more comments in return --- lib/legacy/mutable-data-behavior.html | 5 ++--- lib/mixins/property-accessors.html | 8 ++------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/legacy/mutable-data-behavior.html b/lib/legacy/mutable-data-behavior.html index 4fb70cb53c..850edf185b 100644 --- a/lib/legacy/mutable-data-behavior.html +++ b/lib/legacy/mutable-data-behavior.html @@ -15,9 +15,8 @@ 'use strict'; let mutablePropertyChange; - ( - /** @suppress {missingProperties} */ - function() { + /** @suppress {missingProperties} */ + (() => { mutablePropertyChange = Polymer.MutableData._mutablePropertyChange; })(); diff --git a/lib/mixins/property-accessors.html b/lib/mixins/property-accessors.html index c1977997cd..ab29006966 100644 --- a/lib/mixins/property-accessors.html +++ b/lib/mixins/property-accessors.html @@ -605,12 +605,8 @@ * @protected */ _shouldPropertyChange(property, value, old) { - return ( - // Strict equality check - (old !== value && - // This ensures (old==NaN, value==NaN) always returns false - (old === old || value === value)) - ); + // check equality, and ensure (old == NaN, value == NaN) always returns false + return old !== value && (old === old || value === value); } }