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;
|
return defaults;
|
||||||
|
|
||||||
if (!allowExtras) {
|
if (!allowExtras) {
|
||||||
for (let prop in params) {
|
for (let prop in params) {
|
||||||
if (!(prop in defaults))
|
if (!(prop in defaults))
|
||||||
throw new Error('Unrecognized parameter "' + prop + '"');
|
throw new Error('Unrecognized parameter "' + prop + '"');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let prop in defaults) {
|
for (let prop in defaults) {
|
||||||
if (!(prop in params))
|
if (!(prop in params))
|
||||||
params[prop] = defaults[prop];
|
params[prop] = defaults[prop];
|
||||||
}
|
}
|
||||||
|
|
||||||
return params;
|
return params;
|
||||||
|
@ -608,10 +608,10 @@ GenericDisplay.prototype = {
|
|||||||
throw new Error("Not implemented");
|
throw new Error("Not implemented");
|
||||||
},
|
},
|
||||||
|
|
||||||
// Compares items associated with the item ids based on the order in which the
|
// Compares items associated with the item ids based on the order in which the
|
||||||
// items should be displayed.
|
// items should be displayed.
|
||||||
// Intended to be used as a compareFunction for array.sort().
|
// Intended to be used as a compareFunction for array.sort().
|
||||||
// Returns an integer value indicating the result of the comparison.
|
// Returns an integer value indicating the result of the comparison.
|
||||||
_compareItems: function(itemIdA, itemIdB) {
|
_compareItems: function(itemIdA, itemIdB) {
|
||||||
throw new Error("Not implemented");
|
throw new Error("Not implemented");
|
||||||
},
|
},
|
||||||
|
@ -213,7 +213,7 @@ MessageTray.prototype = {
|
|||||||
this._notificationQueue.push(notification);
|
this._notificationQueue.push(notification);
|
||||||
|
|
||||||
if (this._state == MessageTrayState.HIDDEN)
|
if (this._state == MessageTrayState.HIDDEN)
|
||||||
this._updateState();
|
this._updateState();
|
||||||
},
|
},
|
||||||
|
|
||||||
_onMessageTrayEntered: function() {
|
_onMessageTrayEntered: function() {
|
||||||
@ -267,7 +267,7 @@ MessageTray.prototype = {
|
|||||||
// NOTIFICATION_TIMEOUT represents the time the notifiation
|
// NOTIFICATION_TIMEOUT represents the time the notifiation
|
||||||
// is fully shown.
|
// is fully shown.
|
||||||
timeout = (ANIMATION_TIME + NOTIFICATION_TIMEOUT) * 1000;
|
timeout = (ANIMATION_TIME + NOTIFICATION_TIMEOUT) * 1000;
|
||||||
} else {
|
} else {
|
||||||
this._showSummary();
|
this._showSummary();
|
||||||
this._showTray();
|
this._showTray();
|
||||||
this._state = MessageTrayState.SUMMARY;
|
this._state = MessageTrayState.SUMMARY;
|
||||||
@ -284,7 +284,7 @@ MessageTray.prototype = {
|
|||||||
this._state = MessageTrayState.SUMMARY;
|
this._state = MessageTrayState.SUMMARY;
|
||||||
timeout = (ANIMATION_TIME + SUMMARY_TIMEOUT) * 1000;
|
timeout = (ANIMATION_TIME + SUMMARY_TIMEOUT) * 1000;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MessageTrayState.SUMMARY:
|
case MessageTrayState.SUMMARY:
|
||||||
if (this._notificationQueue.length > 0) {
|
if (this._notificationQueue.length > 0) {
|
||||||
this._hideSummary();
|
this._hideSummary();
|
||||||
|
@ -178,7 +178,7 @@ function resumeTweens() {
|
|||||||
function registerSpecialProperty(name, getFunction, setFunction,
|
function registerSpecialProperty(name, getFunction, setFunction,
|
||||||
parameters, preProcessFunction) {
|
parameters, preProcessFunction) {
|
||||||
Tweener.registerSpecialProperty(name, getFunction, setFunction,
|
Tweener.registerSpecialProperty(name, getFunction, setFunction,
|
||||||
parameters, preProcessFunction);
|
parameters, preProcessFunction);
|
||||||
}
|
}
|
||||||
|
|
||||||
function registerSpecialPropertyModifier(name, modifyFunction, getFunction) {
|
function registerSpecialPropertyModifier(name, modifyFunction, getFunction) {
|
||||||
|
@ -27,13 +27,13 @@ WidgetBox.prototype = {
|
|||||||
_init: function(widget, expanded) {
|
_init: function(widget, expanded) {
|
||||||
this.state = expanded ? Widget.STATE_EXPANDED : Widget.STATE_COLLAPSED;
|
this.state = expanded ? Widget.STATE_EXPANDED : Widget.STATE_COLLAPSED;
|
||||||
|
|
||||||
if (widget instanceof Widget.Widget) {
|
if (widget instanceof Widget.Widget) {
|
||||||
this._widget = widget;
|
this._widget = widget;
|
||||||
this._widget.state = this.state;
|
this._widget.state = this.state;
|
||||||
} else {
|
} else {
|
||||||
let ctor = this._ctorFromName(widget);
|
let ctor = this._ctorFromName(widget);
|
||||||
this._widget = new ctor(this.state);
|
this._widget = new ctor(this.state);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this._widget.actor)
|
if (!this._widget.actor)
|
||||||
throw new Error("widget has no actor");
|
throw new Error("widget has no actor");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user