add MathML semantics and move annotations to end
group TeX math into mrow
Drop console.log statements.
Use find() instead of has().

For some subtle reason the one works and the other does not. Possibly
a bug in has().
Merge pull request #22 from wysiwhat/title-wrapper-fix

Title wrapper fix
Merge pull request #23 from wysiwhat/oerpub-math-example-fix

OERPUB math example fix
Insert title into <head> of saved document.
Merge pull request #29 from wysiwhat/oerpub-serialize-title-fix

Insert title into <head> of saved document.
Fixed popover.hide not to break chaining.

This means that the monkey-patched destroy() was never necessary,
so this has been dropped too.
don't let mousedown on actions propagate

This prevents a click on the toolbar from deactivating the current
editor.
mousedown on popover does not propagate

This prevents the event from reaching aloha and causing the editor
to deactivate, which allows clicking on popovers without the popover
closing on you.
Hide popover before destroying it.

Otherwise it thinks it is visisble and refuses to show up again on
click.
Namespace the show and hide events so they clean up.

The show and hide events, bound via delegation to the editor itself, did not
clean up properly, so there was this ever growing list of hide/show events on
every math element, which likely caused severe performance issues. Adding
a namespace ensures that it is cleaned up when .bubble is off()'ed.
Formatting change in comments, no functionality.  dead code cleanup
Replace aloha-editable-activated with -created.

Also unify the various event handlers all bound to the same event into one.
Use -created event rather than -activated, this code need only run once,
and in our old code where the editor was never deactivated, that is how it
worked anyway.
Avoid binding multiple mousedown handlers to body.
Avoid rebinding deprecated focus/blur callbacks more than once.
Delay cleanup of delegated event handlers on deactivation till last

If you trigger 'hide' after you've cleaned up the event handler, it's not
going to work is it?
Don't glue link popover to math tooltips

Specifically, the X that removes math is an <a>, but it isn't a link. This is
a generic fix that won't place popovers on anything that is marked as ephemera.
Merge remote-tracking branch 'origin/master' into blocks