diff options
author | Timo Tijhof <krinklemail@gmail.com> | 2014-06-05 00:20:47 +0200 |
---|---|---|
committer | Timo Tijhof <krinklemail@gmail.com> | 2014-06-05 00:29:23 +0200 |
commit | 3cb2ccd87863abb8a99ed7d970730ae9e4138fcc (patch) | |
tree | e0b2c7d4592f748c1e9f2c8210de97a44a491860 /resources/lib/jquery.effects/jquery.effects.pulsate.js | |
parent | 966c249fb32b9f49e11bce31f71f02d5d5273c00 (diff) | |
download | mediawikicore-3cb2ccd87863abb8a99ed7d970730ae9e4138fcc.tar.gz mediawikicore-3cb2ccd87863abb8a99ed7d970730ae9e4138fcc.zip |
Upgrade jQuery UI from 1.8.24 to 1.9.2
jQuery UI 1.10 has already been released, and 1.11 is on the
horizon (1.9 is marked "legacy" as of writing). 1.10 drops the
compatibility layer for 1.8 API. So, users should definitely be
encouraged to upgrade their code to move away from the deprecated
1.8 APIs. However, to take it one step at a time, this commit
upgrades us to 1.9 first. That way we're at least not using an
unsupported code base anymore, while at the same time not rolling
out breaking changes.
jQuery UI has redesigned many of its APIs[1], but compatibility
with the jQuery UI 1.8 API is maintained throughout 1.9.x.
* Base theme is now called "Smoothness".
* Sorting the entries in Resources.php alphabetically to make it
easier to ensure all files are listed when comparing them
side-by-side.
* Update dependencies to match the "Depends:" header inside
the javascript files.
* In jQuery UI 1.9, effect files were renamed to match the
jquery.ui.*.js naming pattern.
* New modules:
- jquery.ui.menu
- jquery.ui.spinner
- jquery.ui.tooltip
* Release notes:
- http://blog.jqueryui.com/2012/10/jquery-ui-1-9-0/
- http://jqueryui.com/upgrade-guide/1.9/
- http://jqueryui.com/changelog/1.9.0/
- http://blog.jqueryui.com/2012/10/jquery-ui-1-9-1/
- http://jqueryui.com/changelog/1.9.1/
- http://blog.jqueryui.com/2012/11/jquery-ui-1-9-2/
[1] http://blog.jqueryui.com/2011/03/api-redesigns-the-past-present-and-future/
Bug: 47076
Change-Id: I0e10b42fb7c25b9d4704719f21c44c08f36ddfa7
Diffstat (limited to 'resources/lib/jquery.effects/jquery.effects.pulsate.js')
-rw-r--r-- | resources/lib/jquery.effects/jquery.effects.pulsate.js | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/resources/lib/jquery.effects/jquery.effects.pulsate.js b/resources/lib/jquery.effects/jquery.effects.pulsate.js deleted file mode 100644 index d730beedf5bc..000000000000 --- a/resources/lib/jquery.effects/jquery.effects.pulsate.js +++ /dev/null @@ -1,51 +0,0 @@ -/*! - * jQuery UI Effects Pulsate 1.8.24 - * - * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Effects/Pulsate - * - * Depends: - * jquery.effects.core.js - */ -(function( $, undefined ) { - -$.effects.pulsate = function(o) { - return this.queue(function() { - var elem = $(this), - mode = $.effects.setMode(elem, o.options.mode || 'show'), - times = ((o.options.times || 5) * 2) - 1, - duration = o.duration ? o.duration / 2 : $.fx.speeds._default / 2, - isVisible = elem.is(':visible'), - animateTo = 0; - - if (!isVisible) { - elem.css('opacity', 0).show(); - animateTo = 1; - } - - if ((mode == 'hide' && isVisible) || (mode == 'show' && !isVisible)) { - times--; - } - - for (var i = 0; i < times; i++) { - elem.animate({ opacity: animateTo }, duration, o.options.easing); - animateTo = (animateTo + 1) % 2; - } - - elem.animate({ opacity: animateTo }, duration, o.options.easing, function() { - if (animateTo == 0) { - elem.hide(); - } - (o.callback && o.callback.apply(this, arguments)); - }); - - elem - .queue('fx', function() { elem.dequeue(); }) - .dequeue(); - }); -}; - -})(jQuery); |