component/component.github.io

Search is failing

xixixao opened this issue · 1 comments

While running component.io on localhost I sometimes get

NotFoundError: Node was not found

in

SearchView.prototype.removeSpinner = function(){
  this.el.removeChild(this.spinner.el);             <- here
};

I assume this is caused by the async get (the whole code is really weird, with Search emitting events that lead to redirection that lead to actual search that lead to multiple response handlers called one after another - though the website is decomposed into components everything is tied tightly together, which is a shame for example application - imo, I just skimmed through the source).

fixed this!