perf: use === instead of == for faster checks.
This commit is contained in:
parent
41907853b4
commit
2e1feec257
|
@ -56,8 +56,8 @@ export class ChangeDetector {
|
||||||
if (isPresent(updatedRecords)) {
|
if (isPresent(updatedRecords)) {
|
||||||
var nextEnabled = record.nextEnabled;
|
var nextEnabled = record.nextEnabled;
|
||||||
if (isBlank(nextEnabled) || // we have reached the last enabled record
|
if (isBlank(nextEnabled) || // we have reached the last enabled record
|
||||||
currentRange != nextEnabled.recordRange || // the next record is in a different range
|
currentRange !== nextEnabled.recordRange || // the next record is in a different range
|
||||||
currentGroup != nextEnabled.groupMemento()) { // the next record is in a different group
|
currentGroup !== nextEnabled.groupMemento()) { // the next record is in a different group
|
||||||
currentRange.dispatcher.onRecordChange(currentGroup, updatedRecords);
|
currentRange.dispatcher.onRecordChange(currentGroup, updatedRecords);
|
||||||
updatedRecords = null;
|
updatedRecords = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue