zurb/foundation — pull request #1138 by jstotz (2012-11-05 17:53:47+00:00)
Title: Allow foundationButtons method to be safely called on any element

Prevent duplicate event binding by only binding if the current element
is document.

This allows activation of dropdown buttons that were added to the DOM
after initialization by calling $('#myelement').foundationButtons()
after insertion.

Also, includes bugfix where preventDefault was being incorrectly called
when clicking a descendent of a link (e.g. an embedded ).