Skip to content

Commit

Permalink
Use standard jQuery format #20
Browse files Browse the repository at this point in the history
  • Loading branch information
richhollis committed Apr 12, 2016
1 parent 51ec02c commit 1c624bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions coffee/jquery.vticker.coffee
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
###
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
###

$ ->
(($) ->

defaults =
speed: 700
pause: 4000
Expand Down Expand Up @@ -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'
$.error 'Method ' + method + ' does not exist on jQuery.vTicker'

) jQuery
6 changes: 3 additions & 3 deletions js/jquery.vticker.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -271,4 +271,4 @@ $(function() {
}
return $.error('Method ' + method + ' does not exist on jQuery.vTicker');
};
});
})(jQuery);

0 comments on commit 1c624bd

Please sign in to comment.