Permalink
Browse files

removed console.log

  • Loading branch information...
1 parent 2a2ea70 commit 34eab6911e24de89133c81ece97e76ba87a92020 @vogievetsky committed Mar 14, 2012
Showing with 8 additions and 12 deletions.
  1. +6 −8 dvl.coffee
  2. +2 −4 dvl.js
View
@@ -2555,7 +2555,7 @@ do ->
# Init step
sel = thead.selectAll('th').data(columns)
- sel.enter().append('th')
+ sel.enter().append('th').append('span')
sel.exit().remove()
dvl.register {
@@ -2566,13 +2566,13 @@ do ->
sel = thead.select("th:nth-child(#{i+1})")
visibleChanged = c.visible.hasChanged()
if c.visible.get()
- sel.text(c.title.get()) if c.title.hasChanged() or visibleChanged
- sel.attr('class', c.class.get()) if c.class.hasChanged() or visibleChanged
- sel.attr('title', c.tooltip.get()) if c.tooltip.hasChanged() or visibleChanged
- sel.style('display', null) if visibleChanged
+ sel.select('span').text(c.title.get()) if c.title.hasChanged() or visibleChanged
+ sel.attr('class', c.class.get()) if c.class.hasChanged() or visibleChanged
+ sel.attr('title', c.tooltip.get()) if c.tooltip.hasChanged() or visibleChanged
+ sel.style('display', null) if visibleChanged
sel.on('click', (d) -> onClick.get()?(d.id)) if onClick.hasChanged() or visibleChanged
else
- sel.style('display', 'none') if visibleChanged
+ sel.style('display', 'none') if visibleChanged
return
}
@@ -2652,12 +2652,10 @@ do ->
colSel.enter().append('td')
colSel.exit().remove()
- console.log 'here'
for c,i in columns
sel = tbody.selectAll("td:nth-child(#{i+1})").data(dataSorted)
visibleChanged = c.visible.hasChanged() or newRows
if c.visible.get()
- console.log c.class.get(), c.class.hasChanged(), visibleChanged
sel.attr('class', c.class.get()) if c.class.hasChanged() or visibleChanged
sel.attr('title', c.hover.get()) if c.hover.hasChanged() or visibleChanged
sel.style('display', null) if visibleChanged
View
6 dvl.js
@@ -3064,7 +3064,7 @@ dvl.compare = function(acc, reverse) {
listen.push(c.title, c["class"], c.visible, c.tooltip);
}
sel = thead.selectAll('th').data(columns);
- sel.enter().append('th');
+ sel.enter().append('th').append('span');
sel.exit().remove();
dvl.register({
name: 'header_render',
@@ -3077,7 +3077,7 @@ dvl.compare = function(acc, reverse) {
visibleChanged = c.visible.hasChanged();
if (c.visible.get()) {
if (c.title.hasChanged() || visibleChanged) {
- sel.text(c.title.get());
+ sel.select('span').text(c.title.get());
}
if (c["class"].hasChanged() || visibleChanged) {
sel.attr('class', c["class"].get());
@@ -3166,13 +3166,11 @@ dvl.compare = function(acc, reverse) {
colSel = rowSel.selectAll('td').data(columns);
colSel.enter().append('td');
colSel.exit().remove();
- console.log('here');
for (i = 0, _len2 = columns.length; i < _len2; i++) {
c = columns[i];
sel = tbody.selectAll("td:nth-child(" + (i + 1) + ")").data(dataSorted);
visibleChanged = c.visible.hasChanged() || newRows;
if (c.visible.get()) {
- console.log(c["class"].get(), c["class"].hasChanged(), visibleChanged);
if (c["class"].hasChanged() || visibleChanged) {
sel.attr('class', c["class"].get());
}

0 comments on commit 34eab69

Please sign in to comment.