perf: use === instead of == for faster checks.

This commit is contained in:
Misko Hevery 2015-01-07 21:19:29 -08:00
parent 41907853b4
commit 2e1feec257
1 changed files with 2 additions and 2 deletions

View File

@ -56,8 +56,8 @@ export class ChangeDetector {
if (isPresent(updatedRecords)) {
var nextEnabled = record.nextEnabled;
if (isBlank(nextEnabled) || // we have reached the last enabled record
currentRange != nextEnabled.recordRange || // the next record is in a different range
currentGroup != nextEnabled.groupMemento()) { // the next record is in a different group
currentRange !== nextEnabled.recordRange || // the next record is in a different range
currentGroup !== nextEnabled.groupMemento()) { // the next record is in a different group
currentRange.dispatcher.onRecordChange(currentGroup, updatedRecords);
updatedRecords = null;
}