Bug 587955 - Small cleanups to iconButton
Missing trailing ; after "this._fadeOut()". A few missing spaces after "if". Parameter inconsistently named "icon" instead of "texture".
This commit is contained in:
parent
b45cd0a4eb
commit
177edc5444
@ -128,8 +128,8 @@ const ANIMATION_TIME = 0.25;
|
||||
* size -- size in pixels of both the button and the icon it contains
|
||||
* texture -- optional, must be used if the texture for the icon is already created (else, use setIconFromName)
|
||||
*/
|
||||
function iconButton(parent, size, icon) {
|
||||
this._init(parent, size, icon);
|
||||
function iconButton(parent, size, texture) {
|
||||
this._init(parent, size, texture);
|
||||
}
|
||||
|
||||
iconButton.prototype = {
|
||||
@ -161,7 +161,7 @@ iconButton.prototype = {
|
||||
return;
|
||||
}
|
||||
|
||||
this._fadeOut()
|
||||
this._fadeOut();
|
||||
}));
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user