Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
remove unneeded Path checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelw committed Apr 5, 2014
1 parent 5db3ef5 commit 982e428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/observe.js
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@
Observer.call(this);

this.object_ = object;
this.path_ = path instanceof Path ? path : getPath(path);
this.path_ = getPath(path);
this.directObserver_ = undefined;
}

Expand Down Expand Up @@ -938,7 +938,7 @@
if (this.state_ != UNOPENED && this.state_ != RESETTING)
throw Error('Cannot add paths once started.');

this.observed_.push(object, path instanceof Path ? path : getPath(path));
this.observed_.push(object, getPath(path));
},

addObserver: function(observer) {
Expand Down

0 comments on commit 982e428

Please sign in to comment.