Skip to content

Commit

Permalink
0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmon committed Jan 18, 2013
1 parent 5b2ae4b commit 2c658f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lemmon-slider.jquery.json
Expand Up @@ -11,7 +11,7 @@
"scroll",
"ui"
],
"version": "0.2.0",
"version": "0.2.2",
"author": {
"name": "Jakub Pelák",
"url": "http://www.lemmonjuice.com"
Expand Down
10 changes: 5 additions & 5 deletions lemmon-slider.js
Expand Up @@ -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(){

Expand All @@ -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
Expand Down

0 comments on commit 2c658f4

Please sign in to comment.