Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 6364b5a

Browse files
committed
style(*): remove trailing whitespace
1 parent 265d96a commit 6364b5a

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

src/dirty_checking.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class ChangeRecord {
115115
}
116116

117117
this._observer = this._group && this._group._rootGroup.getObserver(obj, this.field);
118-
118+
119119
if(this._observer){
120120
this._mode = _NOTIFIED_;
121121
this.newValue = this._observer.open((value) =>{
@@ -135,7 +135,7 @@ export class ChangeRecord {
135135

136136
switch (this._mode) {
137137
case _NOT_NOTIFIED_:
138-
case _MODE_MARKER_:
138+
case _MODE_MARKER_:
139139
return false;
140140
case _NOTIFIED_:
141141
current = this.newValue;
@@ -151,7 +151,7 @@ export class ChangeRecord {
151151
break;
152152
case _MODE_GETTER_:
153153
current = this._getter(this.object);
154-
break;
154+
break;
155155
case _MODE_MAP_FIELD_:
156156
if (!this.object) return undefined;
157157
current = this.object[this.field];
@@ -757,7 +757,7 @@ export class CollectionChangeRecord {
757757

758758
return record;
759759
}
760-
760+
761761
_collection_moveAfter(record, prev, index) {
762762
this._collection_unlink(record);
763763
this._collection_insertAfter(record, prev, index);
@@ -1056,7 +1056,7 @@ class DuplicateMap {
10561056

10571057
remove(record) {
10581058
var list = this._map.get(record.item);
1059-
1059+
10601060
// TODO: traceur assert()
10611061
// assert(list != null)
10621062
if (list.remove(record)) {
@@ -1069,4 +1069,4 @@ class DuplicateMap {
10691069
clear() {
10701070
this._map.clear();
10711071
}
1072-
}
1072+
}

src/watch_group.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class WatchGroup {
120120

121121
return count;
122122
}
123-
123+
124124
get isAttached() {
125125
var group = this;
126126
var root = this._rootGroup;
@@ -161,7 +161,7 @@ export class WatchGroup {
161161

162162
get _childWatchGroupTail() {
163163
var tail = this, nextTail;
164-
164+
165165
while ((nextTail = tail._watchGroupTail) !== null) {
166166
tail = nextTail;
167167
}
@@ -223,14 +223,14 @@ export class WatchGroup {
223223
this._nextWatchGroup = this._prevWatchGroup = null;
224224

225225
//TODO: this._changeDetector.remove();
226-
226+
227227
this._rootGroup._removeCount++;
228228
this._parentWatchGroup = null;
229229

230230
// Unlink the _watchRecord
231231
var firstEvalWatch = this._evalWatchHead;
232-
var lastEvalWatch = (this._watchGroupTail === null
233-
? this
232+
var lastEvalWatch = (this._watchGroupTail === null
233+
? this
234234
: this._watchGroupTail)._evalWatchTail;
235235

236236
var prev = firstEvalWatch._prevEvalWatch;
@@ -499,8 +499,8 @@ export class RootWatchGroup extends WatchGroup {
499499

500500
if (evalRecord.check() && changeLog){
501501
changeLog(
502-
evalRecord.handler.expression,
503-
evalRecord.currentValue,
502+
evalRecord.handler.expression,
503+
evalRecord.currentValue,
504504
evalRecord.previousValue
505505
);
506506
}
@@ -615,4 +615,4 @@ export class RootWatchGroup extends WatchGroup {
615615

616616
return watch;
617617
}
618-
}
618+
}

src/watch_record.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export class _EvalWatchRecord {
248248
this.mode = _MODE_METHOD_;
249249
}
250250
}
251-
251+
252252
/**
253253
* TODO(caitp): The usefulness of these blocks is yet to be discovered, but I'm sure it's out
254254
* there somewhere.
@@ -330,4 +330,4 @@ function methodInvoke(object, method, args) {
330330
return object[method].apply(object, args || __no_args__);
331331
}
332332
}
333-
}
333+
}

test/matchers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ beforeEach(function() {
109109
this.message = function() {
110110
return `expected changes [${deltas.join(', ')}] to equal [${expected.join(', ')}]`;
111111
}
112-
return count == expected.length;
112+
return count == expected.length;
113113
},
114114

115115
toEqualChanges: function(expected) {

test/observer.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class ExplicitObserverSelector{
147147

148148
getObserver(obj, field){
149149
var observer;
150-
150+
151151
this.lastObj = obj;
152152
this.lastField = field;
153153

@@ -182,4 +182,4 @@ class ExplicitObserver{
182182
this.closeCalls++;
183183
this.callback = null;
184184
}
185-
}
185+
}

0 commit comments

Comments
 (0)