how to stop event by a condition
<p>i've got this function and i need 'click' event to stop after input value reaches 0 and less</p>

<pre><code> function clickPlus(e) {
                  var parent = e.target.parentNode,
                      span = parent.querySelector('span'),
                      input = parent.getElementsByTagName('input')[0],
                      inner = span.dataset.one,
                      price = inner * (++parent.querySelector('input').value);          
                      span.innerHTML = price; // price takes an input value
                      if (price &gt; 10){
                         return false; // error here 
                      }         
                      countPrice();                  
                }
            for(i=0; i&lt;pluses.length; i++) eventsObj.addEvent(pluses[i],'click', clickPlus);
</code></pre>