Skip to content

Commit

Permalink
query/observable: removed duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanaye authored and Joscha Rohmann committed Oct 14, 2016
1 parent 69ae8d8 commit 05f57d2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/query/observable.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,7 @@ define([
},

toString: function () {
var context = this.__context__;
var value = this._dependencyType == 1 ? this.__value__.call(context)
: this._dependencyType == 2 ? this.__value__.get.call(context)
: this.__value__;
var value = getObservableValue(this);

Observer.registerObservable(this);

Expand Down

0 comments on commit 05f57d2

Please sign in to comment.