h5bp/mobile-boilerplate — pull request #168 by fiznool (2013-03-20 12:40:20+00:00)
Title: ghostClickHandler no longer listened for by default

I had a situation where I want to use some but not all of the utilities in `helper.js`. In particular, I am using the FTLabs `fastclick` library so do not need fastbutton.

Currently an event listener is added for ghostClickHandler, even if you don't need it. This patch only adds this event listener when it is needed, i.e. when a FastButton is instantiated for the first time.

A simple `alreadyRan` check is included to ensure that the event is only added on the first FastButton invocation.