Use parentheses in IFFE's as per AirBnb styleguide.

This commit is contained in:
Bryce Johnson 2016-09-08 17:22:14 +02:00
parent 4ae2a30269
commit b690c19dbf
5 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,5 @@
(global => {
((global) => {
class Profile {
constructor(opts = {}) {
this.onSubmitForm = this.onSubmitForm.bind(this);

View File

@ -1,4 +1,4 @@
(global => {
((global) => {
const KEYCODE = {
ESCAPE: 27,

View File

@ -1,4 +1,4 @@
(global => {
((global) => {
class Todos {
constructor(opts = {}) {

View File

@ -1,4 +1,4 @@
(global => {
((global) => {
global.User = class {
constructor(opts) {
this.opts = opts;

View File

@ -57,7 +57,7 @@ content on the Users#show page.
</div>
</div>
*/
(global => {
((global) => {
class UserTabs {
constructor (opts) {
this.loaded = {};