aboutsummaryrefslogtreecommitdiffstats
path: root/ui/effect-highlight.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2015-03-18 15:39:12 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2015-03-18 15:42:55 +0100
commit868e8c70e391b5ba886edc93fdec28086a6a3fca (patch)
tree16bbe1c88854f12d094ca026d32a00fc9d832ff3 /ui/effect-highlight.js
parentc16a5e58f9e4c130d15e86898e62707c43877ab4 (diff)
downloadjquery-ui-868e8c70e391b5ba886edc93fdec28086a6a3fca.tar.gz
jquery-ui-868e8c70e391b5ba886edc93fdec28086a6a3fca.zip
Effects: Fix style issues in individual effects
Skipping ui/effect.js since embedded jquery-color has many issues. Closes gh-1510
Diffstat (limited to 'ui/effect-highlight.js')
-rw-r--r--ui/effect-highlight.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/effect-highlight.js b/ui/effect-highlight.js
index da3f82b72..721a3a05b 100644
--- a/ui/effect-highlight.js
+++ b/ui/effect-highlight.js
@@ -13,11 +13,11 @@
//>>docs: http://api.jqueryui.com/highlight-effect/
//>>demos: http://jqueryui.com/effect/
-(function( factory ) {
+( function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
- define([
+ define( [
"jquery",
"./effect"
], factory );
@@ -26,7 +26,7 @@
// Browser globals
factory( jQuery );
}
-}(function( $ ) {
+}( function( $ ) {
return $.effects.define( "highlight", "show", function( options, done ) {
var element = $( this ),
@@ -41,16 +41,16 @@ return $.effects.define( "highlight", "show", function( options, done ) {
$.effects.saveStyle( element );
element
- .css({
+ .css( {
backgroundImage: "none",
backgroundColor: options.color || "#ffff99"
- })
+ } )
.animate( animation, {
queue: false,
duration: options.duration,
easing: options.easing,
complete: done
- });
-});
+ } );
+} );
-}));
+} ) );