From fb31267cc1b07a55a7ce5fb7a3259acfeef0ddbd Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Wed, 15 Sep 2010 17:23:48 -0400 Subject: [PATCH] Fixed two accidental globals found while testing Aparajita Fishman's capp_check utility. --- AppKit/CPColorPanel.j | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/AppKit/CPColorPanel.j b/AppKit/CPColorPanel.j index 6ff738edf..b361dcc84 100644 --- a/AppKit/CPColorPanel.j +++ b/AppKit/CPColorPanel.j @@ -107,7 +107,7 @@ CPColorPickerViewHeight = 370; + (void)setPickerMode:(CPColorPanelMode)mode { var panel = [CPColorPanel sharedColorPanel]; - [panel setMode: mode]; + [panel setMode:mode]; } /* @@ -243,11 +243,11 @@ CPColorPickerViewHeight = 370; [view setFrame:[_currentView frame]]; else { - var height = (TOOLBAR_HEIGHT+10+PREVIEW_HEIGHT+5+SWATCH_HEIGHT+32), + var height = (TOOLBAR_HEIGHT + 10 + PREVIEW_HEIGHT + 5 + SWATCH_HEIGHT + 32), bounds = [[self contentView] bounds]; - [view setFrameSize: CPSizeMake(bounds.size.width - 10, bounds.size.height - height)]; - [view setFrameOrigin: CPPointMake(5, height)]; + [view setFrameSize:CPSizeMake(bounds.size.width - 10, bounds.size.height - height)]; + [view setFrameOrigin:CPPointMake(5, height)]; } [_currentView removeFromSuperview]; @@ -285,7 +285,7 @@ CPColorPickerViewHeight = 370; _colorPickers = []; var count = [ColorPickerClasses count]; - for (var i=0; i