Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indenting is broken in some cases #578

Closed
andyburke opened this issue Nov 14, 2014 · 6 comments
Closed

Indenting is broken in some cases #578

andyburke opened this issue Nov 14, 2014 · 6 comments
Milestone

Comments

@andyburke
Copy link

before

    function bindAuthEvent( eventName ) {
        self.auth.on( eventName, function( event, meta ) {
            self.emit( eventName, event, meta );
        } );
    }
    [ 'logged_in', 'logged_out', 'signed_up', 'updated_user' ].forEach( bindAuthEvent );

after

    function bindAuthEvent( eventName ) {
            self.auth.on( eventName, function( event, meta ) {
                self.emit( eventName, event, meta );
            } );
        }
        [ 'logged_in', 'logged_out', 'signed_up', 'updated_user' ].forEach( bindAuthEvent );
@bitwiseman
Copy link
Member

Interesting input, but still - Straight up bug.

@bitwiseman bitwiseman added this to the v1.6.0 milestone Nov 14, 2014
@andyburke
Copy link
Author

What is interesting about the input?

@bitwiseman
Copy link
Member

Statement starting with an array.

@andyburke
Copy link
Author

Sure, but the indentation problem starts in the function... ? Or is it somehow thinking the array is involved with the function definition?

@bitwiseman
Copy link
Member

Something like that. 😄 We'll see.

@bitwiseman
Copy link
Member

Looks like this is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants