Fix some issues with movable region comments.

Review Request #7710 — Created Oct. 19, 2015 and submitted

Information

Review Board
release-2.5.x
49925a8...

Reviewers

While poking through stuff for Power Pack, I noticed that movable region
comments were broken for things other than images. As I dug deeper, I
discovered at least one instance of some confusing API.

This change fixes three major issues:

  • We were calling 'onClicked' by hand without passing an event object.
  • The "selectionRegionSize" API was very confusing. I've changed the same of
    the setter to make it clear we're setting a function that returns the region
    size.
  • Fix a couple calls to _super that were causing infinite recursion.

Tested this in conjunction with a couple corresponding changes to Power Pack.

Description From Last Updated

double backquotes.

brenniebrennie

While here, can you update this so it has a one-line summary, and an "Args" section?

chipx86chipx86

Description on the next line, since it wraps.

chipx86chipx86
reviewbot
  1. Tool: Pyflakes
    Ignored Files:
        reviewboard/static/rb/js/views/regionCommentBlockView.js
        reviewboard/static/rb/js/views/imageReviewableView.js
        reviewboard/static/rb/js/models/regionCommentBlockModel.js
    
    
    
    Tool: PEP8 Style Checker
    Ignored Files:
        reviewboard/static/rb/js/views/regionCommentBlockView.js
        reviewboard/static/rb/js/views/imageReviewableView.js
        reviewboard/static/rb/js/models/regionCommentBlockModel.js
    
    
  2. 
      
brennie
  1. 
      
  2. Show all issues

    double backquotes.

  3. 
      
david
reviewbot
  1. Tool: Pyflakes
    Ignored Files:
        reviewboard/static/rb/js/views/regionCommentBlockView.js
        reviewboard/static/rb/js/views/imageReviewableView.js
        reviewboard/static/rb/js/models/regionCommentBlockModel.js
    
    
    
    Tool: PEP8 Style Checker
    Ignored Files:
        reviewboard/static/rb/js/views/regionCommentBlockView.js
        reviewboard/static/rb/js/views/imageReviewableView.js
        reviewboard/static/rb/js/models/regionCommentBlockModel.js
    
    
  2. 
      
chipx86
  1. 
      
  2. Show all issues

    While here, can you update this so it has a one-line summary, and an "Args" section?

  3. 
      
david
reviewbot
  1. Tool: PEP8 Style Checker
    Ignored Files:
        reviewboard/static/rb/js/views/regionCommentBlockView.js
        reviewboard/static/rb/js/views/imageReviewableView.js
        reviewboard/static/rb/js/models/regionCommentBlockModel.js
    
    
    
    Tool: Pyflakes
    Ignored Files:
        reviewboard/static/rb/js/views/regionCommentBlockView.js
        reviewboard/static/rb/js/views/imageReviewableView.js
        reviewboard/static/rb/js/models/regionCommentBlockModel.js
    
    
  2. 
      
chipx86
  1. 
      
  2. Show all issues

    Description on the next line, since it wraps.

  3. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.5.x (b063fc3)
Loading...