Skip to content
This repository has been archived by the owner on Dec 6, 2017. It is now read-only.

Commit

Permalink
Fixed columns appearing as resizable when "resizable" is false for al…
Browse files Browse the repository at this point in the history
…l of them.

Fixed arguments defaults in event triggering in the grid.
  • Loading branch information
mleibman committed Jan 3, 2011
1 parent 16ea985 commit daacea8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions slick.grid.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -514,8 +514,11 @@ if (typeof Slick === "undefined") {
lastResizable = i; lastResizable = i;
} }
}); });
if (firstResizable === undefined) {
return;
}
columnElements.each(function(i,e) { columnElements.each(function(i,e) {
if ((firstResizable !== undefined && i < firstResizable) || (options.forceFitColumns && i >= lastResizable)) { return; } if (i < firstResizable || (options.forceFitColumns && i >= lastResizable)) { return; }
$col = $(e); $col = $(e);
$("<div class='slick-resizable-handle' />") $("<div class='slick-resizable-handle' />")
.appendTo(e) .appendTo(e)
Expand Down Expand Up @@ -772,7 +775,7 @@ if (typeof Slick === "undefined") {


function trigger(evt, args, e) { function trigger(evt, args, e) {
e = e || new Slick.EventData(); e = e || new Slick.EventData();
args = args || args; args = args || {};
args.grid = self; args.grid = self;
return evt.notify(args, e, self); return evt.notify(args, e, self);
} }
Expand Down

0 comments on commit daacea8

Please sign in to comment.