From 2184c7ca4daa684beadb63ad147f274e6ecac213 Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Mon, 23 Jul 2012 12:12:55 +0200 Subject: [PATCH] Fixed code format issues --- AppKit/CPPopUpButton.j | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AppKit/CPPopUpButton.j b/AppKit/CPPopUpButton.j index f840c2360..98f837d4c 100644 --- a/AppKit/CPPopUpButton.j +++ b/AppKit/CPPopUpButton.j @@ -878,6 +878,7 @@ CPPopUpButtonStatePullsDown = CPThemeState("pulls-down"); [[_source itemAtIndex:0] setTitle:[self _getNullPlaceholder]]; var count = [values count]; + for (var i = 0; i < count; i++) [[_source itemAtIndex:i + offset] setTitle:[[values objectAtIndex:i] description]]; } @@ -936,6 +937,7 @@ var binderForObject = {}; - (id)initWithBinding:(CPString)aBinding name:(CPString)aName to:(id)aDestination keyPath:(CPString)aKeyPath options:(CPDictionary)options from:(id)aSource { self = [super initWithBinding:aBinding name:aName to:aDestination keyPath:aKeyPath options:options from:aSource]; + if (self) { binderForObject[[aSource UID]] = self; @@ -958,8 +960,7 @@ var binderForObject = {}; - (CPInteger)_getInsertNullOffset { - var info = [CPBinder infoForBinding:CPContentBinding forObject:_source]; - var options = [info objectForKey:CPOptionsKey]; + var options = [[CPBinder infoForBinding:CPContentBinding forObject:_source] objectForKey:CPOptionsKey]; return [options objectForKey:CPInsertsNullPlaceholderBindingOption] ? 1 : 0; }