In order for it to work you should replace this:
var c = b.extend({}, b(this).jqGrid(“getGridParam”));
With this:
var c = b.extend(true, {}, b(this).jqGrid(“getGridParam”));
The difference is that the latter option makes a deep copy, instead of a shallow one.