diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-08-21 00:12:17 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-08-21 08:06:24 -0400 |
commit | de242d8ca9bf2b90237c413cb91601541798bae9 (patch) | |
tree | 42658e1e9ed913dbb5a7c11291df74531f503995 /ui/effects/effect-explode.js | |
parent | 009850abbfb78e2334aaf9265abf5a7705a2abf0 (diff) | |
download | jquery-ui-de242d8ca9bf2b90237c413cb91601541798bae9.tar.gz jquery-ui-de242d8ca9bf2b90237c413cb91601541798bae9.zip |
Effects: Style updates
Ref #14246
Ref gh-1588
Diffstat (limited to 'ui/effects/effect-explode.js')
-rw-r--r-- | ui/effects/effect-explode.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/effects/effect-explode.js b/ui/effects/effect-explode.js index 55c247d3e..92b83f545 100644 --- a/ui/effects/effect-explode.js +++ b/ui/effects/effect-explode.js @@ -38,15 +38,15 @@ return $.effects.define( "explode", "hide", function( options, done ) { mode = options.mode, show = mode === "show", - // show and then visibility:hidden the element before calculating offset + // Show and then visibility:hidden the element before calculating offset offset = element.show().css( "visibility", "hidden" ).offset(), - // width and height of a piece + // Width and height of a piece width = Math.ceil( element.outerWidth() / cells ), height = Math.ceil( element.outerHeight() / rows ), pieces = []; - // children animate complete: + // Children animate complete: function childComplete() { pieces.push( this ); if ( pieces.length === rows * cells ) { @@ -54,7 +54,7 @@ return $.effects.define( "explode", "hide", function( options, done ) { } } - // clone the element for each row and cell. + // Clone the element for each row and cell. for ( i = 0; i < rows; i++ ) { // ===> top = offset.top + i * height; my = i - ( rows - 1 ) / 2; @@ -76,7 +76,7 @@ return $.effects.define( "explode", "hide", function( options, done ) { top: -i * height } ) - // select the wrapper - make it overflow: hidden and absolute positioned based on + // Select the wrapper - make it overflow: hidden and absolute positioned based on // where the original was located +left and +top equal to the size of pieces .parent() .addClass( "ui-effects-explode" ) |