amsul/pickadate.js — pull request #249 by vtabary (2013-10-15 13:53:56+00:00)
Title: When the picker is in a modal popup like MagnificPopup, the click handler on document are in conflict on Chrome/Linux.

On Chrome/Linux, when the date picker is in a modal like MagnificPopup (http://dimsemenov.com/plugins/magnific-popup/), two events handler on $document for click are in conflict.

The method event.stopPropagation() in P.$root.on('click') is not sufficient, we have to prevent default behavior too with event.preventDefault().