Skip to content
Permalink
Browse files

0.2.2

  • Loading branch information
lemmon committed Jan 18, 2013
1 parent 5b2ae4b commit 2c658f4f342948710c73106abadabfbf0ba56d3e
Showing with 6 additions and 6 deletions.
  1. +1 −1 lemmon-slider.jquery.json
  2. +5 −5 lemmon-slider.js
@@ -11,7 +11,7 @@
"scroll",
"ui"
],
"version": "0.2.0",
"version": "0.2.2",
"author": {
"name": "Jakub Pelák",
"url": "http://www.lemmonjuice.com"
@@ -20,9 +20,9 @@
//
// Initialzie plugin
//
init : function( options ){
init : function(options){

var options = $.extend( {}, $.fn.lemmonSlider.defaults, options );
var options = $.extend({}, $.fn.lemmonSlider.defaults, options);

return this.each(function(){

@@ -31,12 +31,12 @@

if ( ! data ){

var $sliderContainer = $slider.find( options.slider ),
$sliderControls = $slider.next().filter( '.controls' ),
var $sliderContainer = $slider.find(options.slider),
$sliderControls = $slider.next().filter('.controls'),
$items = $sliderContainer.find( options.items ),
originalWidth = 1;

$items.each(function(){ originalWidth += $( this ).outerWidth( true ) });
$items.each(function(){ originalWidth += $(this).outerWidth(true) });
$sliderContainer.width( originalWidth );

// slide to last item

0 comments on commit 2c658f4

Please sign in to comment.
You can’t perform that action at this time.