Browse files

Table fixes

  • Loading branch information...
1 parent 52ad7d9 commit 0fc60f45cf31dbc570d72a9c7358b6531facc30a Winton Welsh committed Jun 3, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 Table.js
View
5 Table.js
@@ -7,6 +7,8 @@ var Table = Base.extend({
// .content
// (rows)
initialize: function(container, options) {
+ if (!container) return;
+
this.container = container;
this.options = {
map: false,
@@ -118,9 +120,8 @@ var Table = Base.extend({
this.fireEvent('onRowAdd', [ item, index, form ]);
item.addEvent('click', function(e) {
- e.stop();
if (item.getStyle('height').toInt() == 0) return;
- this.fireEvent('onRowClick', [ item, index, form ]);
+ this.fireEvent('onRowClick', [ item, index, form, e ]);
}.bindWithEvent(this));
item.addEvent('mouseover', function(e) {

0 comments on commit 0fc60f4

Please sign in to comment.