Remove animate.js and the issuable label pulse animation.
Nobody tell @jschatz1 :P
This commit is contained in:
parent
f06d370b20
commit
ce6a02eeb4
4 changed files with 5 additions and 57 deletions
|
@ -127,13 +127,6 @@ import DropdownUtils from './filtered_search/dropdown_utils';
|
|||
$('.has-tooltip', $value).tooltip({
|
||||
container: 'body'
|
||||
});
|
||||
return $value.find('a').each(function(i) {
|
||||
return setTimeout((function(_this) {
|
||||
return function() {
|
||||
return gl.animate.animate($(_this), 'pulse');
|
||||
};
|
||||
})(this), 200 * i);
|
||||
});
|
||||
});
|
||||
};
|
||||
$dropdown.glDropdown({
|
||||
|
|
|
@ -1,49 +0,0 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-param-reassign, no-void, prefer-template, no-var, new-cap, prefer-arrow-callback, consistent-return, max-len */
|
||||
(function() {
|
||||
(function(w) {
|
||||
if (w.gl == null) {
|
||||
w.gl = {};
|
||||
}
|
||||
if (gl.animate == null) {
|
||||
gl.animate = {};
|
||||
}
|
||||
gl.animate.animate = function($el, animation, options, done) {
|
||||
if ((options != null ? options.cssStart : void 0) != null) {
|
||||
$el.css(options.cssStart);
|
||||
}
|
||||
$el.removeClass(animation + ' animated').addClass(animation + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() {
|
||||
$(this).removeClass(animation + ' animated');
|
||||
if (done != null) {
|
||||
done();
|
||||
}
|
||||
if ((options != null ? options.cssEnd : void 0) != null) {
|
||||
$el.css(options.cssEnd);
|
||||
}
|
||||
});
|
||||
};
|
||||
gl.animate.animateEach = function($els, animation, time, options, done) {
|
||||
var dfd;
|
||||
dfd = $.Deferred();
|
||||
if (!$els.length) {
|
||||
dfd.resolve();
|
||||
}
|
||||
$els.each(function(i) {
|
||||
setTimeout((function(_this) {
|
||||
return function() {
|
||||
var $this;
|
||||
$this = $(_this);
|
||||
return gl.animate.animate($this, animation, options, function() {
|
||||
if (i === $els.length - 1) {
|
||||
dfd.resolve();
|
||||
if (done != null) {
|
||||
return done();
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
})(this), time * i);
|
||||
});
|
||||
return dfd.promise();
|
||||
};
|
||||
})(window);
|
||||
}).call(window);
|
|
@ -39,7 +39,6 @@ import './commit/file';
|
|||
import './commit/image_file';
|
||||
|
||||
// lib/utils
|
||||
import './lib/utils/animate';
|
||||
import './lib/utils/bootstrap_linked_tabs';
|
||||
import './lib/utils/common_utils';
|
||||
import './lib/utils/datetime_utility';
|
||||
|
|
5
changelogs/unreleased/refactor-animate-js.yml
Normal file
5
changelogs/unreleased/refactor-animate-js.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Remove animate.js and label animation.
|
||||
merge_request:
|
||||
author:
|
||||
type: removed
|
Loading…
Reference in a new issue