app/assets/javascripts/jquery-ui/effects/effect-highlight.js in jquery-ui-rails-6.0.1 vs app/assets/javascripts/jquery-ui/effects/effect-highlight.js in jquery-ui-rails-7.0.0

- old
+ new

@@ -1,10 +1,10 @@ //= require jquery-ui/version //= require jquery-ui/effect /*! - * jQuery UI Effects Highlight 1.12.1 + * jQuery UI Effects Highlight 1.13.0 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license @@ -15,10 +15,12 @@ //>>description: Highlights the background of an element in a defined color for a custom duration. //>>docs: http://api.jqueryui.com/highlight-effect/ //>>demos: http://jqueryui.com/effect/ ( function( factory ) { + "use strict"; + if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define( [ "jquery", @@ -28,11 +30,12 @@ } else { // Browser globals factory( jQuery ); } -}( function( $ ) { +} )( function( $ ) { +"use strict"; return $.effects.define( "highlight", "show", function( options, done ) { var element = $( this ), animation = { backgroundColor: element.css( "backgroundColor" ) @@ -55,6 +58,6 @@ easing: options.easing, complete: done } ); } ); -} ) ); +} );