Added changes in reviews.js to support the new dirtyStateChanged signal in djblets
Review Request #3033 — Created March 31, 2012 and discarded
Information | |
---|---|
jimrrchen | |
Review Board | |
Reviewers | |
reviewboard | |
Added changes in reviews.js to support the new dirtyStateChanged signal in djblets
Tested in Chrome 17.0.963.79 and Firefox 11.0
Description | From | Last Updated |
---|---|---|
Since this function appears multiple times, maybe its better to take it out as a separate function. Also, it might … |
ME medanat | |
This should be above all usage of the function. Also, "isDirty". |
|
|
I'm not a fan of this type of usage. Please use if statements instead. |
|
ME
-
-
reviewboard/static/rb/js/reviews.js (Diff revision 1) Since this function appears multiple times, maybe its better to take it out as a separate function. Also, it might be cleaner to have this as: is_dirty ? gEditCount++ : gEditCount--;
JI
Change Summary:
refactor code to make a new function handleDirtyStateChanged and make it a one-liner
Diff: |
Revision 2 (+12 -52) |
---|
-
-
reviewboard/static/rb/js/reviews.js (Diff revision 2) This should be above all usage of the function. Also, "isDirty".
-
reviewboard/static/rb/js/reviews.js (Diff revision 2) I'm not a fan of this type of usage. Please use if statements instead.