Skip to content

Commit

Permalink
style(*): remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
caitp committed May 22, 2014
1 parent 265d96a commit 6364b5a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
12 changes: 6 additions & 6 deletions src/dirty_checking.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class ChangeRecord {
}

this._observer = this._group && this._group._rootGroup.getObserver(obj, this.field);

if(this._observer){
this._mode = _NOTIFIED_;
this.newValue = this._observer.open((value) =>{
Expand All @@ -135,7 +135,7 @@ export class ChangeRecord {

switch (this._mode) {
case _NOT_NOTIFIED_:
case _MODE_MARKER_:
case _MODE_MARKER_:
return false;
case _NOTIFIED_:
current = this.newValue;
Expand All @@ -151,7 +151,7 @@ export class ChangeRecord {
break;
case _MODE_GETTER_:
current = this._getter(this.object);
break;
break;
case _MODE_MAP_FIELD_:
if (!this.object) return undefined;
current = this.object[this.field];
Expand Down Expand Up @@ -757,7 +757,7 @@ export class CollectionChangeRecord {

return record;
}

_collection_moveAfter(record, prev, index) {
this._collection_unlink(record);
this._collection_insertAfter(record, prev, index);
Expand Down Expand Up @@ -1056,7 +1056,7 @@ class DuplicateMap {

remove(record) {
var list = this._map.get(record.item);

// TODO: traceur assert()
// assert(list != null)
if (list.remove(record)) {
Expand All @@ -1069,4 +1069,4 @@ class DuplicateMap {
clear() {
this._map.clear();
}
}
}
16 changes: 8 additions & 8 deletions src/watch_group.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class WatchGroup {

return count;
}

get isAttached() {
var group = this;
var root = this._rootGroup;
Expand Down Expand Up @@ -161,7 +161,7 @@ export class WatchGroup {

get _childWatchGroupTail() {
var tail = this, nextTail;

while ((nextTail = tail._watchGroupTail) !== null) {
tail = nextTail;
}
Expand Down Expand Up @@ -223,14 +223,14 @@ export class WatchGroup {
this._nextWatchGroup = this._prevWatchGroup = null;

//TODO: this._changeDetector.remove();

this._rootGroup._removeCount++;
this._parentWatchGroup = null;

// Unlink the _watchRecord
var firstEvalWatch = this._evalWatchHead;
var lastEvalWatch = (this._watchGroupTail === null
? this
var lastEvalWatch = (this._watchGroupTail === null
? this
: this._watchGroupTail)._evalWatchTail;

var prev = firstEvalWatch._prevEvalWatch;
Expand Down Expand Up @@ -499,8 +499,8 @@ export class RootWatchGroup extends WatchGroup {

if (evalRecord.check() && changeLog){
changeLog(
evalRecord.handler.expression,
evalRecord.currentValue,
evalRecord.handler.expression,
evalRecord.currentValue,
evalRecord.previousValue
);
}
Expand Down Expand Up @@ -615,4 +615,4 @@ export class RootWatchGroup extends WatchGroup {

return watch;
}
}
}
4 changes: 2 additions & 2 deletions src/watch_record.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export class _EvalWatchRecord {
this.mode = _MODE_METHOD_;
}
}

/**
* TODO(caitp): The usefulness of these blocks is yet to be discovered, but I'm sure it's out
* there somewhere.
Expand Down Expand Up @@ -330,4 +330,4 @@ function methodInvoke(object, method, args) {
return object[method].apply(object, args || __no_args__);
}
}
}
}
2 changes: 1 addition & 1 deletion test/matchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ beforeEach(function() {
this.message = function() {
return `expected changes [${deltas.join(', ')}] to equal [${expected.join(', ')}]`;
}
return count == expected.length;
return count == expected.length;
},

toEqualChanges: function(expected) {
Expand Down
4 changes: 2 additions & 2 deletions test/observer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class ExplicitObserverSelector{

getObserver(obj, field){
var observer;

this.lastObj = obj;
this.lastField = field;

Expand Down Expand Up @@ -182,4 +182,4 @@ class ExplicitObserver{
this.closeCalls++;
this.callback = null;
}
}
}

0 comments on commit 6364b5a

Please sign in to comment.