Skip to content

PR to remove Handlesbars (#12), add debounce, clear subpart array, and minor tweaks.#15

Open
jogoodma wants to merge 12 commits intocalipho-sib:masterfrom
FlyBase:v0.2.29-fb.2-pr
Open

PR to remove Handlesbars (#12), add debounce, clear subpart array, and minor tweaks.#15
jogoodma wants to merge 12 commits intocalipho-sib:masterfrom
FlyBase:v0.2.29-fb.2-pr

Conversation

@jogoodma
Copy link
Copy Markdown
Contributor

@jogoodma jogoodma commented Feb 1, 2018

This PR addresses the following issues:

  1. Removes references to Handlebars (Fully remove Handlebars dependency? #12).
  2. Adds lodash.debounce to the sequence search call to avoid UI throttling on large sequences.
  3. Adds an event to clear the subpart sequence selection array when a user clears the regex.
  4. Removed duplicate bower reference in package.json.

Removed Handlebar references.

Conflicts:
	build/viewer.js
Added a debounce to the regex search.

Regex searches on a long sequence is an expensive
computation.  The search was being fired on each
keystroke (keyup event) which created a noticeable
stutter/delay in the UI.

To alleviate this, a debounce function was added
to the handler so that it is called after the
user has stopped typing and not after each keystroke.
This change fires an event that will clear the subpart
selection array when a user removes all text from the
sequence search box.
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

Successfully merging this pull request may close these issues.

1 participant