Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(411)

Issue 88160051: Allow CompoundObserver to report changes in value from added to open (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by rafaelw
Modified:
11 years ago
Reviewers:
arv
Base URL:
git@github.com:Polymer/observe-js.git@master
Visibility:
Public.

Description

Allow CompoundObserver to report changes in value from added to open R=arv BUG= Committed: https://github.com/Polymer/observe-js/commit/2e3aaec

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -20 lines) Patch
M src/observe.js View 4 chunks +25 lines, -16 lines 3 comments Download
M tests/test.js View 4 chunks +27 lines, -4 lines 0 comments Download

Messages

Total messages: 4
rafaelw
Committed patchset #1 manually as r2e3aaec (presubmit successful).
11 years ago (2014-04-16 23:27:25 UTC) #1
arv
https://codereview.appspot.com/88160051/diff/1/src/observe.js File src/observe.js (right): https://codereview.appspot.com/88160051/diff/1/src/observe.js#newcode944 src/observe.js:944: var index = this.observed_.length / 2 - 1; Why ...
11 years ago (2014-04-17 13:46:01 UTC) #2
rafaelw
https://codereview.appspot.com/88160051/diff/1/src/observe.js File src/observe.js (right): https://codereview.appspot.com/88160051/diff/1/src/observe.js#newcode944 src/observe.js:944: var index = this.observed_.length / 2 - 1; The ...
11 years ago (2014-04-17 17:37:29 UTC) #3
arv
11 years ago (2014-04-17 18:16:23 UTC) #4
Message was sent while issue was closed.
https://codereview.appspot.com/88160051/diff/1/src/observe.js
File src/observe.js (right):

https://codereview.appspot.com/88160051/diff/1/src/observe.js#newcode944
src/observe.js:944: var index = this.observed_.length / 2 - 1;
On 2014/04/17 17:37:29, rafaelw wrote:
> The value_ array is half as long as the observed_ array, because it only
stores
> the value of each dep, while the observed_ array stores a tuple of two values
> for each dep. 
> 
> We're computing the index position of within value into which we need to
write.
> 
> On 2014/04/17 13:46:01, arv wrote:
> > Why are we taking the the object in the middle?
> 

I see. Makes sense now. I didn't pay attention that you were doing the lookup in
a different array.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b