Fix a couple problems calling RB.BaseResource.prototype.defaults

Review Request #8148 — Created May 6, 2016 and submitted

Information

Review Board
release-3.0.x
f79893c...

Reviewers

There were a couple places that used BaseResource.defaults as if it were
just an object rather than a function. This fixes those up.

Ran js-tests.

Description From Last Updated

This should be a method because it will have an object.

brenniebrennie

Likewise this.

brenniebrennie

And this.

brenniebrennie
reviewbot
  1. Tool: Pyflakes
    Ignored Files:
        reviewboard/static/rb/js/resources/models/reviewGroupModel.es6.js
        reviewboard/static/rb/js/models/userSessionModel.js
    
    
    
    Tool: PEP8 Style Checker
    Ignored Files:
        reviewboard/static/rb/js/resources/models/reviewGroupModel.es6.js
        reviewboard/static/rb/js/models/userSessionModel.js
    
    
  2. 
      
brennie
  1. 
      
  2. reviewboard/static/rb/js/models/userSessionModel.js (Diff revision 1)
     
     
     
     
     
     
     
    Show all issues

    This should be a method because it will have an object.

  3. Show all issues

    Likewise this.

  4. Show all issues

    And this.

  5. 
      
david
reviewbot
  1. Tool: Pyflakes
    Ignored Files:
        reviewboard/static/rb/js/resources/models/screenshotModel.es6.js
        reviewboard/static/rb/js/resources/models/diffModel.es6.js
        reviewboard/static/rb/js/resources/models/repositoryCommitModel.es6.js
        reviewboard/static/rb/js/resources/models/repositoryBranchModel.es6.js
        reviewboard/static/rb/js/resources/models/reviewGroupModel.es6.js
        reviewboard/static/rb/js/resources/models/fileDiffModel.es6.js
        reviewboard/static/rb/js/resources/models/repositoryModel.es6.js
        reviewboard/static/rb/js/resources/models/fileAttachmentModel.es6.js
        reviewboard/static/rb/js/models/userSessionModel.js
    
    
    
    Tool: PEP8 Style Checker
    Ignored Files:
        reviewboard/static/rb/js/resources/models/screenshotModel.es6.js
        reviewboard/static/rb/js/resources/models/diffModel.es6.js
        reviewboard/static/rb/js/resources/models/repositoryCommitModel.es6.js
        reviewboard/static/rb/js/resources/models/repositoryBranchModel.es6.js
        reviewboard/static/rb/js/resources/models/reviewGroupModel.es6.js
        reviewboard/static/rb/js/resources/models/fileDiffModel.es6.js
        reviewboard/static/rb/js/resources/models/repositoryModel.es6.js
        reviewboard/static/rb/js/resources/models/fileAttachmentModel.es6.js
        reviewboard/static/rb/js/models/userSessionModel.js
    
    
  2. 
      
brennie
  1. Ship It!
  2. 
      
chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.0.x (b0476a5)