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

Issue 27618002: package:observe fix various api issues (Closed)

Created:
7 years, 2 months ago by Jennifer Messerly
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org, blois, justinfagnani
Visibility:
Public.

Description

package:observe fix various api issues in particular: provide oldValue/newValue/target in PropertyChangeRecord -- https://code.google.com/p/dart/issues/detail?id=12075 use == in notifyPropertyChange -- https://code.google.com/p/dart/issues/detail?id=12463 remove Mixin/Base suffix -- https://code.google.com/p/dart/issues/detail?id=13353 remove ChangeRecord.changes -- https://code.google.com/p/dart/issues/detail?id=14128 other changes: rename PropertyChangeRecord.field to .name (it's not just fields) PathObserver rethrows errors from inside the getter/setter to help debug those PathObserver now looks up Map keys using Strings instead of Symbols. generic type on PropertyChangeRecord, MapChangeRecord I stopped short of adding "target" to List/Map change record but am interested in a follow up to address that: https://code.google.com/p/dart/issues/detail?id=14157 R=sigmund@google.com Committed: https://code.google.com/p/dart/source/detail?r=28774

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+639 lines, -542 lines) Patch
M pkg/mdv/test/custom_element_bindings_test.dart View 7 chunks +20 lines, -19 lines 0 comments Download
M pkg/mdv/test/element_bindings_test.dart View 17 chunks +54 lines, -54 lines 0 comments Download
M pkg/mdv/test/mdv_test_utils.dart View 3 chunks +2 lines, -11 lines 0 comments Download
M pkg/mdv/test/node_bindings_test.dart View 7 chunks +22 lines, -21 lines 0 comments Download
M pkg/mdv/test/template_element_test.dart View 80 chunks +118 lines, -120 lines 0 comments Download
M pkg/observe/lib/html.dart View 3 chunks +8 lines, -2 lines 0 comments Download
M pkg/observe/lib/observe.dart View 3 chunks +4 lines, -2 lines 0 comments Download
M pkg/observe/lib/src/bind_property.dart View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M pkg/observe/lib/src/change_notifier.dart View 2 chunks +5 lines, -13 lines 0 comments Download
M pkg/observe/lib/src/change_record.dart View 1 2 3 2 chunks +40 lines, -14 lines 0 comments Download
M pkg/observe/lib/src/compound_binding.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/observe/lib/src/dirty_check.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/observe/lib/src/list_path_observer.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M pkg/observe/lib/src/metadata.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/observe/lib/src/observable.dart View 9 chunks +68 lines, -84 lines 0 comments Download
M pkg/observe/lib/src/observable_box.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/observe/lib/src/observable_list.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/observe/lib/src/observable_map.dart View 6 chunks +29 lines, -18 lines 0 comments Download
M pkg/observe/lib/src/path_observer.dart View 1 2 3 7 chunks +78 lines, -16 lines 0 comments Download
M pkg/observe/lib/transform.dart View 3 chunks +7 lines, -7 lines 0 comments Download
M pkg/observe/pubspec.yaml View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/observe/test/observable_list_test.dart View 10 chunks +13 lines, -12 lines 0 comments Download
pkg/observe/test/observable_map_test.dart View 13 chunks +35 lines, -24 lines 0 comments Download
M pkg/observe/test/observe_test.dart View 1 2 3 9 chunks +25 lines, -17 lines 0 comments Download
M pkg/observe/test/observe_test_utils.dart View 2 chunks +8 lines, -0 lines 0 comments Download
M pkg/observe/test/path_observer_test.dart View 6 chunks +24 lines, -33 lines 0 comments Download
M pkg/observe/test/transform_test.dart View 5 chunks +25 lines, -25 lines 0 comments Download
M pkg/polymer/lib/src/build/runner.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/polymer/lib/src/instance.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/polymer/test/build/all_phases_test.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/polymer_expressions/example/person.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/polymer_expressions/lib/eval.dart View 3 chunks +13 lines, -12 lines 0 comments Download
M pkg/polymer_expressions/lib/polymer_expressions.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/polymer_expressions/test/bindings_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/polymer_expressions/test/eval_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/polymer_expressions/test/syntax_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/survey/lib/models.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M samples/survey/web/elements/question/question_element.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
samples/survey/web/elements/selection/selection_element.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/survey/web/elements/survey/survey_element.dart View 1 chunk +1 line, -1 line 0 comments Download
samples/third_party/todomvc/web/model.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M samples/third_party/todomvc/web/todo_row.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/tracker/lib/models.dart View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M samples/tracker/web/task_element.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/tracker/web/task_form_element.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M samples/tracker/web/tracker_app.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M samples/word-finder/web/word_finder_element.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Jennifer Messerly
fyi -- it's not as big as it looks, mostly test/example changes. :)
7 years, 2 months ago (2013-10-17 00:06:55 UTC) #1
Siggi Cherem (dart-lang)
awesome! lgtm https://codereview.chromium.org/27618002/diff/6001/pkg/observe/lib/src/bind_property.dart File pkg/observe/lib/src/bind_property.dart (right): https://codereview.chromium.org/27618002/diff/6001/pkg/observe/lib/src/bind_property.dart#newcode32 pkg/observe/lib/src/bind_property.dart:32: (record as PropertyChangeRecord).field == sourceName) { use ...
7 years, 2 months ago (2013-10-17 02:04:55 UTC) #2
Jennifer Messerly
Thanks! (having issues with appengine upload but have addressed these locally ... doing one more ...
7 years, 2 months ago (2013-10-17 03:25:11 UTC) #3
Jennifer Messerly
7 years, 2 months ago (2013-10-17 03:33:06 UTC) #4
Message was sent while issue was closed.
Committed patchset #5 manually as r28774 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698