ah crap


On Sat, Feb 22, 2014 at 3:24 PM, Alex Crichton <notifications@github.com>wrote:

> In src/librustdoc/html/static/main.js:
>
> > @@ -574,8 +579,12 @@
> >                      // When browsing forward to search results the previous search will be repeated,
> >                      // so the currentResults are cleared to ensure the search is successful.
> >                      currentResults = null;
> > -                    // Synchronize search bar with query string state and perform the search.
> > -                    $('.search-input').val(params.search);
> > +                    // Synchronize search bar with query string state and
> > +                    // perform the search, but don't empty the bar if there's
> > +                    // nothing there.
> > +                    if params.search !== undefined {
>
> Sadly I don't think JS has quite adopted rust syntax just yet :(
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mozilla/rust/pull/12439/files#r9972844>
> .
>