Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
feea9a03
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
feea9a03
编写于
9月 14, 2017
作者:
C
Clement Ho
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'refactor-animate-js' into 'master'
Reduce footprint of animate.js See merge request gitlab-org/gitlab-ce!14187
上级
6bbd3d33
ce6a02ee
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
57 deletion
+5
-57
app/assets/javascripts/labels_select.js
app/assets/javascripts/labels_select.js
+0
-7
app/assets/javascripts/lib/utils/animate.js
app/assets/javascripts/lib/utils/animate.js
+0
-49
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+0
-1
changelogs/unreleased/refactor-animate-js.yml
changelogs/unreleased/refactor-animate-js.yml
+5
-0
未找到文件。
app/assets/javascripts/labels_select.js
浏览文件 @
feea9a03
...
...
@@ -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
({
...
...
app/assets/javascripts/lib/utils/animate.js
已删除
100644 → 0
浏览文件 @
6bbd3d33
/* 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
);
app/assets/javascripts/main.js
浏览文件 @
feea9a03
...
...
@@ -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
'
;
...
...
changelogs/unreleased/refactor-animate-js.yml
0 → 100644
浏览文件 @
feea9a03
---
title
:
Remove animate.js and label animation.
merge_request
:
author
:
type
:
removed
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录