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.highlight.js | |
parent | faec9388e2f9890e33c368b459ab164eda019e62 (diff) | |
download | jquery-ui-8d04c3594c4bd56ee2b86068e002b7566359df14.tar.gz jquery-ui-8d04c3594c4bd56ee2b86068e002b7566359df14.zip |
Remove Trailing Spaces
Diffstat (limited to 'ui/effects.highlight.js')
-rw-r--r-- | ui/effects.highlight.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ui/effects.highlight.js b/ui/effects.highlight.js index c55a422b9..c19b7e19b 100644 --- a/ui/effects.highlight.js +++ b/ui/effects.highlight.js @@ -4,7 +4,7 @@ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. - * + * * http://docs.jquery.com/UI/Effects/Highlight * * Depends: @@ -15,34 +15,34 @@ $.effects.highlight = function(o) { return this.queue(function() { - + // Create element var el = $(this), props = ['backgroundImage','backgroundColor','opacity']; - + // Set options var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode var color = o.options.color || "#ffff99"; // Default highlight color var oldColor = el.css("backgroundColor"); - + // Adjust $.effects.save(el, props); el.show(); // Save & Show el.css({backgroundImage: 'none', backgroundColor: color}); // Shift - + // Animation var animation = {backgroundColor: oldColor }; if (mode == "hide") animation['opacity'] = 0; - + // Animate el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { if(mode == "hide") el.hide(); $.effects.restore(el, props); - if (mode == "show" && jQuery.browser.msie) this.style.removeAttribute('filter'); + if (mode == "show" && jQuery.browser.msie) this.style.removeAttribute('filter'); if(o.callback) o.callback.apply(this, arguments); el.dequeue(); }}); - + }); - + }; })(jQuery); |