Files
gitlabhq/app/assets/javascripts
Jacob Schatz 7b18e8c744 Merge branch '13525-sane-defaults-for-merge-request-js-class-constructor' into 'master'
Avoid a TypeError when initializing MergeRequest JS class with no arg

## What does this MR do?

Avoid a TypeError when initializing MergeRequest JS class with no arg.

## Are there points in the code the reviewer needs to double check?

No.

## Why was this MR needed?

Without this sane default you would get the following error when you
tried to instantiate a new MergeRequest object with no argument (i.e.
`new MergeRequest();`):
    
    TypeError: undefined is not an object (evaluating 'this.opts.action')

## What are the relevant issue numbers?

Fixes #13525.

## Does this MR meet the acceptance criteria?

- [x] No CHANGELOG since it's a trivial internal change
- [x] Tests
  - [x] Added for this feature/bug
  - [ ] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !4667
2016-06-16 18:32:23 +00:00
..
2016-06-07 15:27:30 -06:00
2016-06-01 19:42:49 -06:00
2016-05-20 15:58:36 -05:00
2016-03-20 10:58:59 -07:00
2016-04-21 00:20:13 +00:00
2016-04-06 11:08:40 +01:00
2016-06-03 17:14:23 -05:00
2016-04-14 10:28:05 +01:00
2014-12-30 11:46:48 +02:00
2016-04-18 13:45:26 +01:00
2016-03-10 13:54:54 +00:00
2016-06-14 17:53:26 +01:00
2016-03-10 13:55:01 +01:00
2016-04-26 09:03:04 +01:00
2016-06-15 18:33:18 +01:00
2016-06-09 17:19:14 +01:00
2015-10-06 11:43:32 +03:00
2016-03-03 13:09:58 +01:00