cleanup: Use rest parameters instead of arguments
Spotted by eslint. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/607
This commit is contained in:
@ -57,8 +57,8 @@ function _patchLayoutClass(layoutClass, styleProps) {
|
||||
};
|
||||
}
|
||||
|
||||
function _loggingFunc() {
|
||||
let fields = {'MESSAGE': [].join.call(arguments, ', ')};
|
||||
function _loggingFunc(...args) {
|
||||
let fields = {'MESSAGE': args.join(', ')};
|
||||
let domain = "GNOME Shell";
|
||||
|
||||
// If the caller is an extension, add it as metadata
|
||||
|
@ -109,8 +109,9 @@ function isTweening(scope) {
|
||||
return Tweener.getTweenCount(scope) != 0;
|
||||
}
|
||||
|
||||
function removeTweens(scope) {
|
||||
if (Tweener.removeTweens.apply(null, arguments)) {
|
||||
function removeTweens(...args) {
|
||||
if (Tweener.removeTweens(args)) {
|
||||
let [scope] = args;
|
||||
// If we just removed the last active tween, clean up
|
||||
if (Tweener.getTweenCount(scope) == 0)
|
||||
_tweenCompleted(scope);
|
||||
@ -119,12 +120,12 @@ function removeTweens(scope) {
|
||||
return false;
|
||||
}
|
||||
|
||||
function pauseTweens() {
|
||||
return Tweener.pauseTweens.apply(null, arguments);
|
||||
function pauseTweens(...args) {
|
||||
return Tweener.pauseTweens(...args);
|
||||
}
|
||||
|
||||
function resumeTweens() {
|
||||
return Tweener.resumeTweens.apply(null, arguments);
|
||||
function resumeTweens(...args) {
|
||||
return Tweener.resumeTweens(...args);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user