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

Moving from layers to groups, round 2 #13

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

EmilyDirsh
Copy link
Collaborator

Cleaned up and rewrote some of the code. Also changed the way the event bindings work - I explain that more in the commit message.

EmilyDirsh and others added 13 commits May 4, 2012 11:40
I've rewritten the initial event binding to use $('desc').parent()
instead of checking every element for a desc child. This should
improve performance, although I haven't benchmarked it.

I've also pulled the event bindings into a public function in lieu
of using $.delegate or $.on. This is not as nice as using one of
the jQuery deferred functions, but since there is not a CSS selector
equivalent of $('desc').parent(), and since there is no convenient
guaranteed-present parent element outside of document or svg
(neither of which is great to use performance-wise), and since
the use case of dynamic SVG elements currently seems to be rare,
I think this is a reasonable way of accomplishing the event binding
while still having the possibility of rebinding on element insertion.
Squashed commit of the following:

commit cad63e8
Author: Emily Dirsh <[email protected]>
Date:   Thu Oct 16 13:15:49 2014 -0400

    Rewrite MagicMockup to use no external dependencies

    Removed all external dependencies for MagicMockup. This
    change should improve performance. It reduces script size
    by a lot. It also improves the build process - making it
    much simpler and easier to maintain.

    * Rewrote MagicMockup in vanilla js
    * Added test.svg as a click through test file to ensure
      that current and future changes don't break MM

commit 0a5356d
Author: Emily Dirsh <[email protected]>
Date:   Fri Jun 6 15:00:09 2014 -0400

    WIP - Begin removing jquery and other dependencies
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.

3 participants