tonytomov/jqGrid — pull request #606 by kinncj (2014-05-16 03:18:15+00:00)
Title: Merge parameters to a new object

**Description**

- Merge new parameters to a new object always overriding the previous data.

**Why**:
- Imagine the situation where you need to reload the grid using different filters,
merging into the first object (this.p), you are always appending data to the class parameters instead of override them

**Bug sample**:

```javascript
this.p = {'postData': {'arguments': {'filter': {'username': 'john' }}}};
```

Once you call setGridParam again trying to "change" a parameter, in this case, filter, your object will be:

```javascript
this.p = {'postData': {'arguments': {'filter': {'username': 'john', 'lastname': 'maria' }}}};
```

And if you call it again you still "appending" data to the same configuration attribute, you will never be able to have the filter on its default state ( ***{}*** )

**Solution**:
- Always override the data

**Sample**:

```javascript
this.p = {'postData': {'arguments': {'filter': {'username': 'john' }}}};
```

If you call the method, you should have:

```javascript
this.p = {'postData': {'arguments': {'filter': {'lastname': 'maria' }}}};
```

This way, the user will be free to use wherever filter he want's... if he want's first and last name, just need to set a filter with both data.

```javascript
this.p = {'postData': {'arguments': {'filter': {'username': 'john', 'lastname': 'maria' }}}};
```