[gnome-shell] change a few stray tabs to spaces
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] change a few stray tabs to spaces
- Date: Tue, 2 Feb 2010 15:31:54 +0000 (UTC)
commit 8d31c2f4dc93273ffc71a07012081586b509acd0
Author: Dan Winship <danw gnome org>
Date: Tue Feb 2 10:31:38 2010 -0500
change a few stray tabs to spaces
js/misc/params.js | 12 ++++++------
js/ui/genericDisplay.js | 8 ++++----
js/ui/messageTray.js | 6 +++---
js/ui/tweener.js | 2 +-
js/ui/widgetBox.js | 10 +++++-----
5 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/js/misc/params.js b/js/misc/params.js
index 77c51b9..09e46b0 100644
--- a/js/misc/params.js
+++ b/js/misc/params.js
@@ -18,15 +18,15 @@ function parse(params, defaults, allowExtras) {
return defaults;
if (!allowExtras) {
- for (let prop in params) {
- if (!(prop in defaults))
- throw new Error('Unrecognized parameter "' + prop + '"');
- }
+ for (let prop in params) {
+ if (!(prop in defaults))
+ throw new Error('Unrecognized parameter "' + prop + '"');
+ }
}
for (let prop in defaults) {
- if (!(prop in params))
- params[prop] = defaults[prop];
+ if (!(prop in params))
+ params[prop] = defaults[prop];
}
return params;
diff --git a/js/ui/genericDisplay.js b/js/ui/genericDisplay.js
index aaa0189..b220740 100644
--- a/js/ui/genericDisplay.js
+++ b/js/ui/genericDisplay.js
@@ -608,10 +608,10 @@ GenericDisplay.prototype = {
throw new Error("Not implemented");
},
- // Compares items associated with the item ids based on the order in which the
- // items should be displayed.
- // Intended to be used as a compareFunction for array.sort().
- // Returns an integer value indicating the result of the comparison.
+ // Compares items associated with the item ids based on the order in which the
+ // items should be displayed.
+ // Intended to be used as a compareFunction for array.sort().
+ // Returns an integer value indicating the result of the comparison.
_compareItems: function(itemIdA, itemIdB) {
throw new Error("Not implemented");
},
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 076024b..86cd602 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -213,7 +213,7 @@ MessageTray.prototype = {
this._notificationQueue.push(notification);
if (this._state == MessageTrayState.HIDDEN)
- this._updateState();
+ this._updateState();
},
_onMessageTrayEntered: function() {
@@ -267,7 +267,7 @@ MessageTray.prototype = {
// NOTIFICATION_TIMEOUT represents the time the notifiation
// is fully shown.
timeout = (ANIMATION_TIME + NOTIFICATION_TIMEOUT) * 1000;
- } else {
+ } else {
this._showSummary();
this._showTray();
this._state = MessageTrayState.SUMMARY;
@@ -284,7 +284,7 @@ MessageTray.prototype = {
this._state = MessageTrayState.SUMMARY;
timeout = (ANIMATION_TIME + SUMMARY_TIMEOUT) * 1000;
}
- break;
+ break;
case MessageTrayState.SUMMARY:
if (this._notificationQueue.length > 0) {
this._hideSummary();
diff --git a/js/ui/tweener.js b/js/ui/tweener.js
index 083c7be..8eb358a 100644
--- a/js/ui/tweener.js
+++ b/js/ui/tweener.js
@@ -178,7 +178,7 @@ function resumeTweens() {
function registerSpecialProperty(name, getFunction, setFunction,
parameters, preProcessFunction) {
Tweener.registerSpecialProperty(name, getFunction, setFunction,
- parameters, preProcessFunction);
+ parameters, preProcessFunction);
}
function registerSpecialPropertyModifier(name, modifyFunction, getFunction) {
diff --git a/js/ui/widgetBox.js b/js/ui/widgetBox.js
index 1455160..0c413e9 100644
--- a/js/ui/widgetBox.js
+++ b/js/ui/widgetBox.js
@@ -27,13 +27,13 @@ WidgetBox.prototype = {
_init: function(widget, expanded) {
this.state = expanded ? Widget.STATE_EXPANDED : Widget.STATE_COLLAPSED;
- if (widget instanceof Widget.Widget) {
- this._widget = widget;
+ if (widget instanceof Widget.Widget) {
+ this._widget = widget;
this._widget.state = this.state;
- } else {
- let ctor = this._ctorFromName(widget);
+ } else {
+ let ctor = this._ctorFromName(widget);
this._widget = new ctor(this.state);
- }
+ }
if (!this._widget.actor)
throw new Error("widget has no actor");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]