From e1b6a1f3c836fe8d23acd668986b37b50668877b Mon Sep 17 00:00:00 2001 From: expouic Date: Tue, 18 Feb 2014 15:22:25 +0000 Subject: [PATCH] added callback function after done Add callback option after load all code --- responsiveslides.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/responsiveslides.js b/responsiveslides.js index fbc331a..f3f8322 100644 --- a/responsiveslides.js +++ b/responsiveslides.js @@ -29,6 +29,7 @@ "namespace": "rslides", // String: change the default namespace used "before": $.noop, // Function: Before callback "after": $.noop // Function: After callback + "callback": $.noop // Function: callback }, options); return this.each(function () { @@ -385,6 +386,10 @@ }); } + // callback if exist + if (settings.callback){ + settings.callback(); + } }); };