Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cappuccino/cappuccino into cappuc…
Browse files Browse the repository at this point in the history
…cino
  • Loading branch information
aparajita committed Apr 10, 2012
2 parents f4f4554 + 1b0fa21 commit c40aaa0
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 17 deletions.
1 change: 1 addition & 0 deletions AppKit/CPAnimation.j
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ ACTUAL_FRAME_RATE = 0;
*/
- (void)setAnimationCurve:(CPAnimationCurve)anAnimationCurve
{
var timingFunctionName;
switch (anAnimationCurve)
{
case CPAnimationEaseInOut: timingFunctionName = kCAMediaTimingFunctionEaseInEaseOut;
Expand Down
4 changes: 1 addition & 3 deletions AppKit/CPMenuItem/_CPMenuItemMenuBarView.j
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,8 @@ var SelectionColor = nil,
[_submenuIndicatorView setFrame:submenuViewFrame];
}

_minSize = CGSizeMake(x + HORIZONTAL_MARGIN, height);

[self setAutoresizesSubviews:NO];
[self setFrameSize:_minSize];
[self setFrameSize:CGSizeMake(x + HORIZONTAL_MARGIN, height)];
[self setAutoresizesSubviews:YES];
}

Expand Down
1 change: 0 additions & 1 deletion AppKit/CPOutlineView.j
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ var CPOutlineViewCoalesceSelectionNotificationStateOff = 0,

_retargedChildIndex = nil;
_shouldRetargetChildIndex = NO;
_startHoverTime = nil;

[self setIndentationPerLevel:16.0];
[self setIndentationMarkerFollowsDataView:YES];
Expand Down
3 changes: 2 additions & 1 deletion AppKit/CPRuleEditor/CPPredicateEditor.j
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@
{
var rootRowsArray = [super _rootRowsArray],
subpredicates = [CPMutableArray array],
count = count2 = [rootRowsArray count],
count,
count2 = count = [rootRowsArray count],
predicate;

while (count--)
Expand Down
12 changes: 4 additions & 8 deletions AppKit/CPTableView.j
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
*/
- (void)_init
{
_tableViewFlags = 0;
_lastSelectedRow = -1;

_selectedColumnIndexes = [CPIndexSet indexSet];
Expand All @@ -335,15 +334,12 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
if (!_alternatingRowBackgroundColors)
_alternatingRowBackgroundColors = [[CPColor whiteColor], [CPColor colorWithHexString:@"e4e7ff"]];

_selectionHighlightColor = [CPColor colorWithHexString:@"5f83b9"];

_tableColumnRanges = [];
_dirtyTableColumnRangeIndex = 0;
_numberOfHiddenColumns = 0;

_objectValues = { };
_dataViewsForTableColumns = { };
_dataViews = [];
_numberOfRows = 0;
_exposedRows = [CPIndexSet indexSet];
_exposedColumns = [CPIndexSet indexSet];
Expand Down Expand Up @@ -3696,7 +3692,8 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
[_selectedColumnIndexes getIndexes:indexes maxCount:-1 inIndexRange:exposedRange];
}

var count = count2 = [indexes count];
var count,
count2 = count == [indexes count];

if (!count)
return;
Expand Down Expand Up @@ -4852,9 +4849,8 @@ var CPTableViewDataSourceKey = @"CPTableViewDataSourceKey",

while (index != CPNotFound)
{
var indexSet = (switchFlag) ? otherSet : self;

otherIndex = [indexSet indexGreaterThanOrEqualToIndex:index];
var indexSet = (switchFlag) ? otherSet : self,
otherIndex = [indexSet indexGreaterThanOrEqualToIndex:index];

if (otherIndex == index)
{
Expand Down
2 changes: 1 addition & 1 deletion AppKit/CPWindow/_CPHUDWindowView.j
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var HUD_TITLEBAR_HEIGHT = 26.0;

if ([[[self window] toolbar] isVisible])
{
toolbarHeight = CGRectGetHeight([[self toolbarView] frame]);
var toolbarHeight = CGRectGetHeight([[self toolbarView] frame]);

frameRect.origin.y -= toolbarHeight;
frameRect.size.height += toolbarHeight;
Expand Down
2 changes: 1 addition & 1 deletion AppKit/CPWindow/_CPStandardWindowView.j
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ var STANDARD_GRADIENT_HEIGHT = 41.0,

if ([theToolbar isVisible])
{
toolbarHeight = CGRectGetHeight([[theToolbar _toolbarView] frame]);
var toolbarHeight = CGRectGetHeight([[theToolbar _toolbarView] frame]);

frameRect.origin.y -= toolbarHeight;
frameRect.size.height += toolbarHeight;
Expand Down
2 changes: 1 addition & 1 deletion Foundation/CPArray/CPArray.j
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ var concat = Array.prototype.concat,

if ([objects count])
{
argumentsArray = [[nil, aSelector] arrayByAddingObjectsFromArray:objects];
var argumentsArray = [[nil, aSelector] arrayByAddingObjectsFromArray:objects];

for (; index < count; ++index)
{
Expand Down
2 changes: 1 addition & 1 deletion Foundation/CPArray/_CPJavaScriptArray.j
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ var concat = Array.prototype.concat,

if ([objects count])
{
argumentsArray = [[nil, aSelector] arrayByAddingObjectsFromArray:objects];
var argumentsArray = [[nil, aSelector] arrayByAddingObjectsFromArray:objects];

for (; index < count; ++index)
{
Expand Down

0 comments on commit c40aaa0

Please sign in to comment.