Fixed bug in trigger

apply was getting called on an undefined object causing callbacks to fail
Merge pull request #7 from ankit/patch-1

Fixed bug in trigger