From c14a4deddf674080faa3d4a091ac8a251327e7ae Mon Sep 17 00:00:00 2001 From: Siegfried-Angel Gevatter Pujals Date: Sat, 26 Sep 2009 00:47:07 +0200 Subject: [PATCH] Rename iconButton to IconButton, as it is a class. --- js/ui/button.js | 5 ++--- js/ui/genericDisplay.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/js/ui/button.js b/js/ui/button.js index 443d77b3a..7cae476af 100644 --- a/js/ui/button.js +++ b/js/ui/button.js @@ -91,11 +91,11 @@ 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, texture) { +function IconButton(parent, size, texture) { this._init(parent, size, texture); } -iconButton.prototype = { +IconButton.prototype = { _init : function(parent, size, texture) { this._size = size; if (texture) @@ -170,4 +170,3 @@ iconButton.prototype = { transition :"easeOutQuad" }); } }; - diff --git a/js/ui/genericDisplay.js b/js/ui/genericDisplay.js index 028af4f9f..2ca7c5586 100644 --- a/js/ui/genericDisplay.js +++ b/js/ui/genericDisplay.js @@ -98,7 +98,7 @@ GenericDisplayItem.prototype = { infoIconUri, INFORMATION_BUTTON_SIZE, INFORMATION_BUTTON_SIZE); - this._informationButton = new Button.iconButton(this.actor, INFORMATION_BUTTON_SIZE, infoIcon); + this._informationButton = new Button.IconButton(this.actor, INFORMATION_BUTTON_SIZE, infoIcon); let buttonBox = new Big.Box({ width: INFORMATION_BUTTON_SIZE + 2 * DEFAULT_PADDING, height: INFORMATION_BUTTON_SIZE, padding_left: DEFAULT_PADDING, padding_right: DEFAULT_PADDING,