paulopmx/Flexigrid — pull request #39 by vanderlee (2012-10-12 19:30:19+00:00)
Title: Use modern serialization if params option is an object

Flexigrid currently uses an old style serialization for server-side data, which is inconvenient for modern server languages. For example, if you specify ```params: [ { name: 'a', value: [ 1, 2, 3 ] } ]```, the pair ```a``` = ```1,2,3``` is sent to the server.

This fix automatically uses modern (according to jQuery) serialization if you use an object for the params option. So if you specify ```params: { a: [ 1, 2, 3 ] }```, it now posts ```a[0]``` = ```1```, ```a[1]``` = ```2``` and ```a[2]``` = ```2```, which server languages like PHP (and most others) will parse into an array.

Since this fix is triggered by a syntax for the params option that previously caused errors, it should be backwards compatible, yet provides modern behaviour for anybody expecting params to be a plain object.

Also, Netbeans fixed some extraneous whitespace issues.