Added support for complex triggers.

This small fix allows to use a complex DOM container as the calendar's trigger.