diff options
author | mleibman <michael.leibman@gmail.com> | 2011-01-02 16:28:41 -0800 |
---|---|---|
committer | mleibman <michael.leibman@gmail.com> | 2011-01-02 16:28:41 -0800 |
commit | daacea89167c66790932dbfd0afb012936e883a1 (patch) | |
tree | a842034a4920d3d5e4238fe6a593310a26ef6dfc /slick.grid.js | |
parent | 16ea985be64cf94dd35225a2af322c0d249f52ac (diff) | |
download | SlickGrid-daacea89167c66790932dbfd0afb012936e883a1.zip SlickGrid-daacea89167c66790932dbfd0afb012936e883a1.tar.gz SlickGrid-daacea89167c66790932dbfd0afb012936e883a1.tar.bz2 |
Fixed columns appearing as resizable when "resizable" is false for all of them.
Fixed arguments defaults in event triggering in the grid.
Diffstat (limited to 'slick.grid.js')
-rw-r--r-- | slick.grid.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/slick.grid.js b/slick.grid.js index a5f4e35..6b7c815 100644 --- a/slick.grid.js +++ b/slick.grid.js @@ -514,8 +514,11 @@ if (typeof Slick === "undefined") { lastResizable = i; } }); + if (firstResizable === undefined) { + return; + } 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); $("<div class='slick-resizable-handle' />") .appendTo(e) @@ -772,7 +775,7 @@ if (typeof Slick === "undefined") { function trigger(evt, args, e) { e = e || new Slick.EventData(); - args = args || args; + args = args || {}; args.grid = self; return evt.notify(args, e, self); } |