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

Issue 13265045: Refactor and rename BindingEngine._storeChanged

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by gary.poster
Modified:
10 years, 8 months ago
Reviewers:
benjamin.saller, mp+184901
Visibility:
Public.

Description

Refactor and rename BindingEngine._storeChanged This is a small clean-up branch in preparation to cleaning up some of the conflict resolution edge cases. It is largely about refactoring and renaming BindingEngine._storeChanged. * BindingEngine._storeChanged is now called _nodeChangeHandler. * That method simply calls out to the new method _nodeChanged. It takes a node rather than an event with a node. * Factored _getBinding out of _nodeChanged to make the code read better and to test the functionality independently. * Adjusted tests to use _nodeChanged. * Refactored tests to reuse more code and clean up some lint. * Added tests for _getBinding. In addition to those related changes, I made one more peripheral change: I removed an unused argument to unsyncedFields. https://code.launchpad.net/~gary/juju-gui/nodeChangeHandler/+merge/184901 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3

Patch Set 2 : Refactor and rename BindingEngine._storeChanged #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -52 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M app/views/databinding.js View 1 2 chunks +42 lines, -13 lines 0 comments Download
M app/views/inspector.js View 1 chunk +1 line, -1 line 0 comments Download
M test/test_databinding.js View 1 9 chunks +61 lines, -35 lines 0 comments Download
M test/test_inspector_constraints.js View 1 chunk +1 line, -1 line 0 comments Download
M test/test_inspector_settings.js View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 4
gary.poster
Please take a look.
10 years, 8 months ago (2013-09-11 01:04:33 UTC) #1
benjamin.saller
LGTM, minor suggestions, take it or leave it, thanks for the cleanups https://codereview.appspot.com/13265045/diff/1/app/views/databinding.js File app/views/databinding.js ...
10 years, 8 months ago (2013-09-11 01:37:51 UTC) #2
gary.poster
On 2013/09/11 01:37:51, benjamin.saller wrote: > LGTM, minor suggestions, take it or leave it, thanks ...
10 years, 8 months ago (2013-09-11 01:53:41 UTC) #3
gary.poster
10 years, 8 months ago (2013-09-11 02:15:55 UTC) #4
*** Submitted:

Refactor and rename BindingEngine._storeChanged

This is a small clean-up branch in preparation to cleaning up some of the
conflict resolution edge cases.  It is largely about refactoring and renaming
BindingEngine._storeChanged.

* BindingEngine._storeChanged is now called _nodeChangeHandler.
* That method simply calls out to the new method _nodeChanged.  It takes a node
rather than an event with a node.
* Factored _getBinding out of _nodeChanged to make the code read better and to
test the functionality independently.
* Adjusted tests to use _nodeChanged.
* Refactored tests to reuse more code and clean up some lint.
* Added tests for _getBinding.

In addition to those related changes, I made one more peripheral change: I
removed an unused argument to unsyncedFields.

R=benjamin.saller
CC=
https://codereview.appspot.com/13265045
Sign in to reply to this message.

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