Skip to content

Commit

Permalink
observable.update now not subscribes.
Browse files Browse the repository at this point in the history
observable.update now will not subscribe it's observable to the current
element (e.g. data-query).
  • Loading branch information
Joscha Rohmann committed Nov 3, 2015
1 parent 43a3fc6 commit 487eb80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/query/observable.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ define([
var isProperty;
var propertyName;

Observer.startObserving();

blocks.eachRight(this._expressions, function updateExpression(expression) {
element = expression.element;
context = expression.context;
Expand Down Expand Up @@ -246,6 +248,8 @@ define([
observable(index);
});

Observer.stopObserving();

return this;
},

Expand Down

0 comments on commit 487eb80

Please sign in to comment.