From f67508995e8f649958d891ebb0b2de461d0f4644 Mon Sep 17 00:00:00 2001 From: Dan O'Brien Muzyka Date: Thu, 30 May 2013 16:52:18 -0700 Subject: [PATCH] Wrapping JavaScript in self-invoking function to make it compatible with other JavaScript libraries that use the $ variable. --- js/jquery.timelinr-0.9.53.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/jquery.timelinr-0.9.53.js b/js/jquery.timelinr-0.9.53.js index 79c215f..0734473 100644 --- a/js/jquery.timelinr-0.9.53.js +++ b/js/jquery.timelinr-0.9.53.js @@ -9,6 +9,8 @@ http://www.opensource.org/licenses/mit-license.php instructions: http://www.csslab.cl/2011/08/18/jquery-timelinr/ ---------------------------------- */ +(function($) { + jQuery.fn.timelinr = function(options){ // default plugin settings settings = jQuery.extend({ @@ -275,4 +277,6 @@ function autoPlay(){ currentDate.parent().prev().find('a').trigger('click'); } } -} \ No newline at end of file +} + +})(jQuery);