diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-09-19 14:08:41 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-09-19 14:08:41 +0000 |
commit | 8d04c3594c4bd56ee2b86068e002b7566359df14 (patch) | |
tree | 54fc356f1f8d908c65b437541fbf895b2a96db94 /ui/effects.explode.js | |
parent | faec9388e2f9890e33c368b459ab164eda019e62 (diff) | |
download | jquery-ui-8d04c3594c4bd56ee2b86068e002b7566359df14.tar.gz jquery-ui-8d04c3594c4bd56ee2b86068e002b7566359df14.zip |
Remove Trailing Spaces
Diffstat (limited to 'ui/effects.explode.js')
-rw-r--r-- | ui/effects.explode.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ui/effects.explode.js b/ui/effects.explode.js index 7ade03c50..81b06ed99 100644 --- a/ui/effects.explode.js +++ b/ui/effects.explode.js @@ -4,7 +4,7 @@ * Copyright (c) 2008 Paul Bakaus (ui.jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. - * + * * http://docs.jquery.com/UI/Effects/Explode * * Depends: @@ -18,15 +18,15 @@ $.effects.explode = function(o) { var rows = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3; var cells = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3; - + o.options.mode = o.options.mode == 'toggle' ? ($(this).is(':visible') ? 'hide' : 'show') : o.options.mode; var el = $(this).show().css('visibility', 'hidden'); var offset = el.offset(); - + //Substract the margins - not fixing the problem yet. offset.top -= parseInt(el.css("marginTop")) || 0; offset.left -= parseInt(el.css("marginLeft")) || 0; - + var width = el.outerWidth(true); var height = el.outerHeight(true); @@ -62,18 +62,18 @@ $.effects.explode = function(o) { // Set a timeout, to call the callback approx. when the other animations have finished setTimeout(function() { - + o.options.mode == 'show' ? el.css({ visibility: 'visible' }) : el.css({ visibility: 'visible' }).hide(); if(o.callback) o.callback.apply(el[0]); // Callback el.dequeue(); - + $('.effects-explode').remove(); - + }, o.duration || 500); - - + + }); - + }; })(jQuery); |