Skip to content

Commit

Permalink
a few more comments in return
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Sep 7, 2017
1 parent c802b8b commit f6f0a3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
5 changes: 2 additions & 3 deletions lib/legacy/mutable-data-behavior.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
'use strict';

let mutablePropertyChange;
(
/** @suppress {missingProperties} */
function() {
/** @suppress {missingProperties} */
(() => {
mutablePropertyChange = Polymer.MutableData._mutablePropertyChange;
})();

Expand Down
8 changes: 2 additions & 6 deletions lib/mixins/property-accessors.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}
Expand Down

0 comments on commit f6f0a3b

Please sign in to comment.