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

Refactor #22

Merged
merged 30 commits into from
Nov 29, 2015
Merged

Refactor #22

merged 30 commits into from
Nov 29, 2015

Conversation

yoannmoinet
Copy link
Owner

Major refactor

Amazing performances improvement.

API Changes

The API doesn't change much, only two additions on the manager.

  • ids : Array of all nipples' ids this manager has.
  • id : Number identifying the manager. Is incremental.

Semantic Changes

From this refactor we'll start a semantic switch.
I'll prepare another PR to apply this switch.
The Manager as we know it today will become a Collection.
There can be multiple instances of Collections, and this is what is returned by the nipplejs.create() function.
And we'll welcome the Manager that will handle all the Collections.
It is the general factory and exists only as one instance, it can be found under nipplejs.factory (for now).

Tests

I was able to add tests (FINALLY) with Casper.
They don't test much for now, only multitouch effects.
But this is a really good starting point.

Closes #16 #20 and #14

- off() clears handlers and triggering after that, would call no handlers
yoannmoinet added a commit that referenced this pull request Nov 29, 2015
refactor: major refactor with big performances
@yoannmoinet yoannmoinet merged commit 770790d into master Nov 29, 2015
@yoannmoinet yoannmoinet deleted the features/refactor branch November 29, 2015 06:33
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