Skip to content

Commit

Permalink
Fix a array splice in columnChooser for IE browsers. IE totally omit …
Browse files Browse the repository at this point in the history
…the some specifications.
  • Loading branch information
tonytomov committed Feb 15, 2010
1 parent a4f3a64 commit 19a1083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/grid.jqueryui.js
Expand Up @@ -216,7 +216,7 @@ $.jgrid.extend({
function insert(perm,i,v) {
if(i>=0){
var a = perm.slice();
var b = a.splice(i);
var b = a.splice(i,Math.max(perm.length-i,i));
if(i>perm.length) i = perm.length;
a[i] = v;
return a.concat(b);
Expand Down

0 comments on commit 19a1083

Please sign in to comment.