Skip to content

Commit

Permalink
Update to support jQuery 1.9+
Browse files Browse the repository at this point in the history
Replace live with .on
  • Loading branch information
Mr Johnsson committed Apr 19, 2013
1 parent de3b2b2 commit 2bcfa6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bootstrap-joyride.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
return $target.popover('show');
}
});
$('a.tour-tip-close').live('click', function() {
$(document).on('click', 'a.tour-tip-close', function() {
var current_step;
current_step = $(this).data('touridx');
$(settings.tipContent).first().find("li:nth-child(" + current_step + ")").data('target').popover('hide');
Expand All @@ -119,7 +119,7 @@
}
return settings.postRideCallback();
});
return $('a.tour-tip-next').live('click', function() {
return $(document).on('click', 'a.tour-tip-next', function() {
var current_step, next_tip, _ref, id;
current_step = $(this).data('touridx');
log("current step: " + current_step);
Expand All @@ -145,4 +145,4 @@
}
});

}).call(this);
}).call(this);

0 comments on commit 2bcfa6a

Please sign in to comment.