Skip to content

Conversation

@alexanderGugel
Copy link
Member

  • Add PREVENT_DEFAULT and PROMOTE_DEFAULT commands
  • No longer preventDefault by default
  • Add UNSUBSCRIBE command

Fixes #167
@DnMllr @browles Thoughts?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs docs

@alexanderGugel
Copy link
Member Author

@michaelobriena I mentioned the missing docs in the PR. My question was rather whether we want a preventDefault command or if we should handle that case in addUIEvent. E.g. @browles suggested having an options argument in addUIEvent instead.

Counterargument: preventDefault is DOM-specific and adding it to addUIEvent makes dynamically changing preventDefault after adding the event impossible.

Thoughts?

@michaelobriena
Copy link
Member

I know you did, it is just a way for me to note it for myself :)

@alexanderGugel
Copy link
Member Author

Ahhh ok :)

@browles
Copy link
Contributor

browles commented May 28, 2015

How about just .allowDefault?

@alexanderGugel alexanderGugel force-pushed the preventDefault-optional branch 2 times, most recently from cdd359b to 8992545 Compare May 28, 2015 20:23
@alexanderGugel
Copy link
Member Author

@browles 👍 changed

@FarhadG
Copy link
Contributor

FarhadG commented Jun 8, 2015

What's the status on this PR?

@alexanderGugel @michaelobriena

@alexanderGugel
Copy link
Member Author

This should be merged ASAP IMO.

@solomon-gumball
Copy link
Contributor

Don't these conflict? #215

@alexanderGugel
Copy link
Member Author

Yes, they do. Why did/ Did you copy over "UNSUBSCRIBE" instead of basing off of this PR?

@alexanderGugel alexanderGugel force-pushed the preventDefault-optional branch from f56d1a7 to 8133f65 Compare June 9, 2015 19:48
@solomon-gumball
Copy link
Contributor

Didn't copy anything over, just started from scratch.

We can merge this and then I can reconcile the other PR with it.

@alexanderGugel
Copy link
Member Author

Sounds good. Ok.

@michaelobriena
Copy link
Member

@alexanderGugel This is not ready to merge as there are still public functions without docs.

@alexanderGugel
Copy link
Member Author

NOOOO!! Ok. All user-facing APIs are documented. Will fix.

* Add `PREVENT_DEFAULT` and `PROMOTE_DEFAULT` commands
* No longer preventDefault by default
* Add `UNSUBSCRIBE` command
@alexanderGugel alexanderGugel force-pushed the preventDefault-optional branch from 8133f65 to fe0e330 Compare June 10, 2015 09:47
@alexanderGugel
Copy link
Member Author

@michaelobriena Sorry. Thought the diff was outdated. All documented now.

@michaelobriena michaelobriena merged commit fe0e330 into Famous:develop Jun 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants