From 1c624bd347ef0bcb6e686795303a056e506472cc Mon Sep 17 00:00:00 2001 From: Rich Hollis Date: Tue, 12 Apr 2016 09:18:31 +0100 Subject: [PATCH] Use standard jQuery format #20 --- coffee/jquery.vticker.coffee | 9 ++++++--- js/jquery.vticker.js | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/coffee/jquery.vticker.coffee b/coffee/jquery.vticker.coffee index 38dfed5..0e1e9ea 100644 --- a/coffee/jquery.vticker.coffee +++ b/coffee/jquery.vticker.coffee @@ -1,5 +1,5 @@ ### - Vertical News Ticker 1.2 + Vertical News Ticker 1.21 Original by: Tadas Juozapaitis ( kasp3rito [eta] gmail (dot) com ) https://github.com/kasp3r/vTicker @@ -7,7 +7,8 @@ Forked/Modified by: Richard Hollis @richhollis - richhollis.co.uk ### -$ -> +(($) -> + defaults = speed: 700 pause: 4000 @@ -192,4 +193,6 @@ $ -> $.fn.vTicker = (method) -> return methods[method].apply(@, Array::slice.call(arguments, 1)) if methods[method] return methods.init.apply(@, arguments) if typeof method == 'object' || !method - $.error 'Method ' + method + ' does not exist on jQuery.vTicker' \ No newline at end of file + $.error 'Method ' + method + ' does not exist on jQuery.vTicker' + +) jQuery \ No newline at end of file diff --git a/js/jquery.vticker.js b/js/jquery.vticker.js index 8d21b84..82bb15f 100644 --- a/js/jquery.vticker.js +++ b/js/jquery.vticker.js @@ -1,13 +1,13 @@ /* - Vertical News Ticker 1.2 + Vertical News Ticker 1.21 Original by: Tadas Juozapaitis ( kasp3rito [eta] gmail (dot) com ) https://github.com/kasp3r/vTicker Forked/Modified by: Richard Hollis @richhollis - richhollis.co.uk */ -$(function() { +(function($) { var defaults, internal, methods; defaults = { speed: 700, @@ -271,4 +271,4 @@ $(function() { } return $.error('Method ' + method + ' does not exist on jQuery.vTicker'); }; -}); +})(jQuery);