• Jeremy Darling's avatar
    Minor bug fix in controller.js Controller.prototype.removeItem · 1e0e1908
    Jeremy Darling authored
    Controller.prototype.removeItem did not check if the item was available
    via the DOM before calling removeChild.  If you were only viewing
    "active" and clicked the "Clear completed" button it would result in an
    error.  Wrapped the remvoeChild call in an if statement to validate
    existence of the elememnt.
    1e0e1908
controller.js 8.77 KB