title: D3js setting fill to none programmatically impacts onClick Event
body: <p>can someone explain to me what's wrong with the following method to manipulate path colors on different conditions?</p>
  
  <pre><code>    &lt;button ID="btnTopo" onclick="fillTopo()"&gt; FillTopo&lt;/button&gt;
  
                  var isTopo;
                  function fillTopo() {
  
                              svgContainer.selectAll("path")
                                  .filter(function (d) {
                                      if (d.properties.PE_Nr == 7000) { 
                                          return true;
                                      }
                                  })
                                  .attr("fill", isTopo ? "none" : "#FF6600");
  
                              svgContainer.selectAll("path")
                                  .filter(function (d) {
                                      if (d.properties.PE_Nr == 7200) { 
                                          return true;
                                      }
                                  })
                                  .attr("fill", isTopo ? "none" : "#FFFF00");
  
                              svgContainer.selectAll("path")
                                  .filter(function (d) {
                                      if (d.properties.PE_Nr == 6600) {
                                          return true;
                                      }
                                  })
                                  .attr("fill", isTopo ? "none" : "#F20000");
  
          .
          .
          .
  isTopo = !isTopo;
          + 30
  </code></pre>
  
  <p>In the beginning, all my paths have fill: none and an onClickEvent which fires as I expect.</p>
  
  <p>OnButtonClick I execute the fillTopo function. On the first click, everything works fine, my path OnClick-Event fires but on the second Click on the button, which changes fill to none again
  my path onClick event stops firing.</p>
  
  <p>What I'm doing wrong here?</p>