Skip to content

Commit

Permalink
Fix Shepherd. event binding
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbloom committed Apr 16, 2014
1 parent b427ea5 commit 4b86534
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions coffee/shepherd.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,10 @@ class Tour extends Evented

# Pass these events onto the global Shepherd object
for event in ['complete', 'cancel', 'hide', 'start', 'show', 'active', 'inactive']
@on event, (opts={}) =>
opts.tour = @
Shepherd.trigger event, opts
do (event) =>
@on event, (opts={}) =>
opts.tour = @
Shepherd.trigger event, opts

@

Expand Down

0 comments on commit 4b86534

Please sign in to comment.