dbushell/Pikaday — pull request #180 by Pomar1 (2014-08-17 06:33:17+00:00)
Title: Added support for complex DOM triggers.

A small fix that allows the programmer to use complex DOM elements as the calendar's trigger. This is especially useful when you use *div* elements ( with children images, text, DOM etc. ) as the field / trigger.

Changed *while* loop iterates upwards and check whether the clicked element does not belong to the actual trigger.

![git_pikaday_pull](https://cloud.githubusercontent.com/assets/4968863/3943915/d2b8b040-25d7-11e4-8030-ba481da45e48.jpg)