cleanup: Use new indentation style for object literals
We have made good progress on object literals as well, although there are still a lot that use the old style, given how ubiquitous object literals are. But the needed reindentation isn't overly intrusive, as changes are limited to the object literals themselves (i.e. they don't affect surrounding code). And given that object literals account for quite a bit of the remaining differences between regular and legacy rules, doing the transition now is still worthwhile. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2200>
This commit is contained in:

committed by
Marge Bot

parent
ac9fbe92e5
commit
2b45a01517
@ -555,9 +555,11 @@ function _findModal(grab) {
|
||||
* @returns {Clutter.Grab}: the grab handle created
|
||||
*/
|
||||
function pushModal(actor, params) {
|
||||
params = Params.parse(params, { timestamp: global.get_current_time(),
|
||||
options: 0,
|
||||
actionMode: Shell.ActionMode.NONE });
|
||||
params = Params.parse(params, {
|
||||
timestamp: global.get_current_time(),
|
||||
options: 0,
|
||||
actionMode: Shell.ActionMode.NONE,
|
||||
});
|
||||
|
||||
let grab = global.stage.grab(actor);
|
||||
|
||||
@ -582,7 +584,8 @@ function pushModal(actor, params) {
|
||||
modalActorFocusStack[index].prevFocus = null;
|
||||
});
|
||||
}
|
||||
modalActorFocusStack.push({ actor,
|
||||
modalActorFocusStack.push({
|
||||
actor,
|
||||
grab,
|
||||
destroyId: actorDestroyId,
|
||||
prevFocus,
|
||||
@ -788,8 +791,10 @@ function _queueBeforeRedraw(workId) {
|
||||
function initializeDeferredWork(actor, callback) {
|
||||
// Turn into a string so we can use as an object property
|
||||
let workId = `${++_deferredWorkSequence}`;
|
||||
_deferredWorkData[workId] = { actor,
|
||||
callback };
|
||||
_deferredWorkData[workId] = {
|
||||
actor,
|
||||
callback,
|
||||
};
|
||||
actor.connect('notify::mapped', () => {
|
||||
if (!(actor.mapped && _deferredWorkQueue.includes(workId)))
|
||||
return;
|
||||
@ -838,10 +843,12 @@ function queueDeferredWork(workId) {
|
||||
var RestartMessage = GObject.registerClass(
|
||||
class RestartMessage extends ModalDialog.ModalDialog {
|
||||
_init(message) {
|
||||
super._init({ shellReactive: true,
|
||||
styleClass: 'restart-message headline',
|
||||
shouldFadeIn: false,
|
||||
destroyOnClose: true });
|
||||
super._init({
|
||||
shellReactive: true,
|
||||
styleClass: 'restart-message headline',
|
||||
shouldFadeIn: false,
|
||||
destroyOnClose: true,
|
||||
});
|
||||
|
||||
let label = new St.Label({
|
||||
text: message,
|
||||
|
Reference in New Issue
Block a user