Skip to content

Commit

Permalink
Fix #4181
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Jun 30, 2016
1 parent c9bbe21 commit 2af76ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/definitions/modules/shape.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ $.fn.shape = function(parameters) {
var
$clone = $module.clone().addClass(className.loading),
$activeSide = $clone.find('.' + settings.className.active),
$nextSide = (nextIndex)
? $clone.find(selector.side).eq(nextIndex)
: ( $activeSide.next(selector.side).length > 0 )
? $activeSide.next(selector.side)
: $clone.find(selector.side).first(),
newWidth = (settings.width == 'next')
? $nextSide.outerWidth(true)
: (settings.width == 'initial')
Expand All @@ -253,12 +258,7 @@ $.fn.shape = function(parameters) {
? $nextSide.outerHeight(true)
: (settings.height == 'initial')
? $module.height()
: settings.height,
$nextSide = (nextIndex)
? $clone.find(selector.side).eq(nextIndex)
: ( $activeSide.next(selector.side).length > 0 )
? $activeSide.next(selector.side)
: $clone.find(selector.side).first()
: settings.height
;
$activeSide.removeClass(className.active);
$nextSide.addClass(className.active);
Expand Down

0 comments on commit 2af76ba

Please sign in to comment.