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

Issue 49370043: Nothing to do if false one-time if (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by rafaelw
Modified:
12 years, 3 months ago
Reviewers:
arv, rafaelw1, John Messerly
Base URL:
https://github.com/Polymer/TemplateBinding.git@master
Visibility:
Public.

Description

Nothing to do if false one-time if R=arv BUG= Committed: https://github.com/Polymer/TemplateBinding/commit/bec956e

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/TemplateBinding.js View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 5
rafaelw
Committed patchset #1 manually as rbec956e (presubmit successful).
12 years, 3 months ago (2014-01-09 00:34:53 UTC) #1
John Messerly
lgtm :)
12 years, 3 months ago (2014-01-09 03:14:03 UTC) #2
arv
https://codereview.appspot.com/49370043/diff/1/src/TemplateBinding.js File src/TemplateBinding.js (right): https://codereview.appspot.com/49370043/diff/1/src/TemplateBinding.js#newcode810 src/TemplateBinding.js:810: return this.updateIteratedValue(); Shouldn't this be? if (...) { this.updateIteratedValue(); ...
12 years, 3 months ago (2014-01-09 15:17:41 UTC) #3
John Messerly
https://codereview.appspot.com/49370043/diff/1/src/TemplateBinding.js File src/TemplateBinding.js (right): https://codereview.appspot.com/49370043/diff/1/src/TemplateBinding.js#newcode810 src/TemplateBinding.js:810: return this.updateIteratedValue(); On 2014/01/09 15:17:41, arv wrote: > Shouldn't ...
12 years, 3 months ago (2014-01-09 20:53:15 UTC) #4
rafaelw1
12 years, 3 months ago (2014-01-14 20:00:59 UTC) #5
John's right: I was just trying to be compact. Returns on their own lines
now.


On Thu, Jan 9, 2014 at 12:53 PM, <jmesserly@google.com> wrote:

>
> https://codereview.appspot.com/49370043/diff/1/src/TemplateBinding.js
> File src/TemplateBinding.js (right):
>
> https://codereview.appspot.com/49370043/diff/1/src/
> TemplateBinding.js#newcode810
> src/TemplateBinding.js:810: return this.updateIteratedValue();
> On 2014/01/09 15:17:41, arv wrote:
>
>> Shouldn't this be?
>>
>
>  if (...) {
>>    this.updateIteratedValue();
>>    return;
>> }
>>
>
>  since this.updateIteratedValue() does not return void.
>>
>
> yeah, updateIteratedValue seems a bit inconsistent too, line 838 has
> `return this.valueChanged();` but line 849 just has
> `this.valueChanged(value, observe);`. Ultimately valueChanged doesn't
> return anything, so my guess was that it is shorthand to keep everything
> on a single line.
>
> https://codereview.appspot.com/49370043/
>
Sign in to reply to this message.

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