Fix issue where diffs fail to update when moving between revisions
Review Request #6261 — Created Aug. 24, 2014 and discarded
Backbone.View's this.el is not getting initialized (perhaps intentionally, I cannot tell). The fix is to test for validity before using it.
Checked that loading pages with multiple revisions can be changed with slider in the process of producing diffs. Ran all unit tests.
-
Can you provide some explanation of what you think this change accomplishes and how it fixes the bug?
- Change Summary:
-
Upload correct diff.
- Description:
-
~ Fix issue where diffs fail to update when moving between revisions
~ Backbone.View's this.el is not getting initialized (perhaps intentionally, I cannot tell). The fix is to test for validity before using it.
- Testing Done:
-
+ Checked that loading pages with multiple revisions can be changed with slider in the process of producing diffs. Ran all unit tests.
-
Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffReviewableView.js Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffReviewableView.js
-
I don't understand the case where this happens. I haven't seen it myself.
I'd need to see solid repro steps that I can trigger, and we should probably get a JavaScript unit test that demonstrates the behavior and shows it's fixed.