Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does search work? #108

Closed
wenqinYe opened this issue Dec 23, 2014 · 1 comment
Closed

How does search work? #108

wenqinYe opened this issue Dec 23, 2014 · 1 comment

Comments

@wenqinYe
Copy link

Hello, I want to contribute to this project as my first open source project; however, I don't quite understand how the search function works.

I'm assuming speedy.js is where it all starts because that is where the "search" function resides. However, I don't get what happens next; why does search call setRelatedDOMVisibility and what does the ga function do?

screen shot 2014-12-23 at 12 45 01 pm

Thank you :)

-I hope this is where you ask questions.

@muan
Copy link
Owner

muan commented Dec 23, 2014

setRelatedDOMVisibility toggles this screen depending on if anything was found:

image

ga is initialized here, it's for tracking the search event in Google Analytics.

It's a bit weird indeed. I did some refactoring recently, got rid of lots of elements, and should have clean this function up a bit.

No worries, you're welcome. :)

@muan muan closed this as completed Dec 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants