change a few stray tabs to spaces
This commit is contained in:
parent
eaa1f9a0f4
commit
8d31c2f4dc
@ -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;
|
||||
|
@ -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");
|
||||
},
|
||||
|
@ -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();
|
||||
|
@ -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) {
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user