From 99c9857162a5ab9fc5cb9a09f34690b64824fdee Mon Sep 17 00:00:00 2001 From: Viljami S Date: Tue, 20 Mar 2012 08:44:05 +0200 Subject: [PATCH] bind --> on --- responsiveslides.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/responsiveslides.js b/responsiveslides.js index fa62382..bcdc2be 100644 --- a/responsiveslides.js +++ b/responsiveslides.js @@ -144,7 +144,7 @@ if (settings.pagination === true) { // On touch start - $tabs.bind("click", function (e) { + $tabs.on("click", function (e) { e.preventDefault(); restartCycle(); @@ -178,20 +178,20 @@ // Prev and Next if (settings.nav === true) { - // Build markup + // Build navigation var navMarkup = "«" + "»"; - // Inject markup + // Inject navigation $this.after(navMarkup); - // Buttons + // Prev and next buttons var $prev = $("." + namespaceIndex + "_nav.prev"), $next = $("." + namespaceIndex + "_nav.next"); - // Previous slide - $prev.bind("click", function (e) { + // Prev slide + $prev.on("click", function (e) { e.preventDefault(); var idx = $slide.index($("." + visibleClass)), idxTo = idx - 1; @@ -204,7 +204,7 @@ }); // Next slide - $next.bind("click", function (e) { + $next.on("click", function (e) { e.preventDefault(); var idx = $slide.index($("." + visibleClass)), idxTo = idx + 1 < length ? index + 1 : 0;