Skip to content

Commit

Permalink
Fixed bug with jslint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfly committed Oct 22, 2010
1 parent f1081c2 commit a960b27
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tnt/src/js/TimesTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,9 @@ var TimesTable = new Class({
} else {
tr.removeClass('hovered');
}
var deleteTime = function() {
this.deleteRows([tr]);
}.bind(this);
var cells = tr.getChildren();
for(var col = 0; col < table.cols.length; col++) {
var key = table.cols[col];
Expand All @@ -652,9 +655,7 @@ var TimesTable = new Class({
if(tr.hovered) {
cells[col].set('html', 'X');
cells[col].addClass('deleteTime'); //TODO - pretty picture
cells[col].addEvent('click', function() {
this.deleteRows([tr]);
}.bind(this));
cells[col].addEvent('click', deleteTime);
} else {
cells[col].set('html', time.index + 1);
cells[col].removeClass('deleteTime');
Expand Down

0 comments on commit a960b27

Please sign in to comment.