Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(851)

Issue 11416259: fix #136, support watch exprs and two way bindings for component fields (Closed)

Created:
8 years ago by Jennifer Messerly
Modified:
8 years ago
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/dart-web-components.git@master
Visibility:
Public.

Description

fix #136, support watch exprs and two way bindings for component fields Committed: https://github.com/dart-lang/dart-web-components/commit/e321f1c

Patch Set 1 #

Patch Set 2 : merged #

Patch Set 3 : merged #

Patch Set 4 : #

Total comments: 11

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -177 lines) Patch
M example/explainer/countcomponent5.html View 1 chunk +2 lines, -2 lines 0 comments Download
M example/todomvc/main.html View 1 1 chunk +1 line, -1 line 0 comments Download
M lib/src/analyzer.dart View 1 2 3 4 6 chunks +35 lines, -11 lines 0 comments Download
M lib/src/emitters.dart View 1 2 3 4 6 chunks +30 lines, -27 lines 0 comments Download
M lib/src/info.dart View 1 2 3 4 5 chunks +32 lines, -2 lines 0 comments Download
M lib/web_components.dart View 2 chunks +4 lines, -0 lines 0 comments Download
M test/analyzer_test.dart View 1 1 chunk +42 lines, -2 lines 0 comments Download
A test/data/expected/component_field_2way_test.html.txt View 1 chunk +20 lines, -0 lines 0 comments Download
A test/data/expected/component_field_test.html.txt View 1 chunk +85 lines, -0 lines 0 comments Download
A + test/data/expected/custom_radio_button_test.html.txt View 1 chunk +7 lines, -5 lines 0 comments Download
D test/data/expected/data_value_test.html.txt View 1 chunk +0 lines, -49 lines 0 comments Download
A + test/data/input/component_field_2way_test.html View 1 chunk +20 lines, -13 lines 0 comments Download
test/data/input/component_field_test.html View 2 chunks +9 lines, -5 lines 0 comments Download
A + test/data/input/custom_radio_button_test.html View 2 chunks +24 lines, -2 lines 0 comments Download
D test/data/input/data_value_test.html View 1 chunk +0 lines, -48 lines 0 comments Download
M test/data/input/todomvc_listorder_shadowdom_test.html View 1 1 chunk +1 line, -1 line 0 comments Download
M test/data/input/todomvc_listorder_test.html View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/data/input/todomvc_mainpage2_test.html View 1 1 chunk +1 line, -1 line 0 comments Download
M test/data/input/todomvc_mainpage_test.html View 1 1 chunk +1 line, -1 line 0 comments Download
M test/data/input/todomvc_markdone_test.html View 1 1 chunk +1 line, -1 line 0 comments Download
M test/emitter_test.dart View 1 3 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Jennifer Messerly
I'm not sure if we'll get to #82 for M2, but it will change a ...
8 years ago (2012-11-29 05:34:34 UTC) #1
Siggi Cherem (dart-lang)
very very cool. https://chromiumcodereview.appspot.com/11416259/diff/5001/lib/src/analyzer.dart File lib/src/analyzer.dart (right): https://chromiumcodereview.appspot.com/11416259/diff/5001/lib/src/analyzer.dart#newcode343 lib/src/analyzer.dart:343: 'field-name="{{expr}}". Unlike data-value "expr" will be ...
8 years ago (2012-11-29 18:06:57 UTC) #2
Jennifer Messerly
I'll fix the other things after I get out of training :) https://chromiumcodereview.appspot.com/11416259/diff/5001/lib/src/emitters.dart File lib/src/emitters.dart ...
8 years ago (2012-11-29 19:26:02 UTC) #3
Siggi Cherem (dart-lang)
lgtm Thanks for the clarification. https://chromiumcodereview.appspot.com/11416259/diff/5001/lib/src/emitters.dart File lib/src/emitters.dart (right): https://chromiumcodereview.appspot.com/11416259/diff/5001/lib/src/emitters.dart#newcode185 lib/src/emitters.dart:185: "${info.identifier} = new autogenerated.Text('');"); ...
8 years ago (2012-11-29 19:31:50 UTC) #4
Jennifer Messerly
8 years ago (2012-11-30 03:21:41 UTC) #5
Thanks!

https://chromiumcodereview.appspot.com/11416259/diff/5001/lib/src/analyzer.dart
File lib/src/analyzer.dart (right):

https://chromiumcodereview.appspot.com/11416259/diff/5001/lib/src/analyzer.da...
lib/src/analyzer.dart:343: 'field-name="{{expr}}". Unlike data-value "expr" will
be watched and '
On 2012/11/29 18:06:57, Siggi Cherem (dart-lang) wrote:
> add comma?
> Unlike data-value, "expr" ...

Done.

https://chromiumcodereview.appspot.com/11416259/diff/5001/lib/src/emitters.dart
File lib/src/emitters.dart (right):

https://chromiumcodereview.appspot.com/11416259/diff/5001/lib/src/emitters.da...
lib/src/emitters.dart:931: // elements, or try to set a property if this is a
component.
On 2012/11/29 18:06:57, Siggi Cherem (dart-lang) wrote:
> maybe split the comment in two? since the next statement only refers to the
> component case?

Done. Reworded to only refer to the "xtag.$name" case

https://chromiumcodereview.appspot.com/11416259/diff/5001/lib/src/info.dart
File lib/src/info.dart (right):

https://chromiumcodereview.appspot.com/11416259/diff/5001/lib/src/info.dart#n...
lib/src/info.dart:311: }
On 2012/11/29 18:06:57, Siggi Cherem (dart-lang) wrote:
> how about doing this recursively?
> 
> String get baseExtendsTag =>
>     extendsComponent == null ? extendsTag : extendsComponent.baseExtendsTag;

Done.

Powered by Google App Engine
This is Rietveld 408576698