Skip to content

Commit f6f0a3b

Browse files
committed
a few more comments in return
1 parent c802b8b commit f6f0a3b

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

lib/legacy/mutable-data-behavior.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
'use strict';
1616

1717
let mutablePropertyChange;
18-
(
19-
/** @suppress {missingProperties} */
20-
function() {
18+
/** @suppress {missingProperties} */
19+
(() => {
2120
mutablePropertyChange = Polymer.MutableData._mutablePropertyChange;
2221
})();
2322

lib/mixins/property-accessors.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -605,12 +605,8 @@
605605
* @protected
606606
*/
607607
_shouldPropertyChange(property, value, old) {
608-
return (
609-
// Strict equality check
610-
(old !== value &&
611-
// This ensures (old==NaN, value==NaN) always returns false
612-
(old === old || value === value))
613-
);
608+
// check equality, and ensure (old == NaN, value == NaN) always returns false
609+
return old !== value && (old === old || value === value);
614610
}
615611

616612
}

0 commit comments

Comments
 (0)