simple-javascript-indenter icon indicating copy to clipboard operation
simple-javascript-indenter copied to clipboard

Bad indentation for object definition

Open chrisyip opened this issue 14 years ago • 0 comments

Environment: Win7 + gVim 7.3 Script version: 1.4.6

See screenshot: http://minus.com/mbkxBCRmSn#1

Description I have the below code but the indentation is wrong:

var _form = this
  , $form = $(this)
  , options = {
        a: 1
      , b: 2
    }
    ;

  $form.bind('submit', function(){});

What I expected:

var _form = this
  , $form = $(this)
  , options = {
        a: 1
      , b: 2
    }
  ;

$form.bind('submit', function(){});

chrisyip avatar Jan 12 '12 07:01 chrisyip