diff --git a/AppKit/CPWindow/CPWindow.j b/AppKit/CPWindow/CPWindow.j index f118368e3..232c93b10 100644 --- a/AppKit/CPWindow/CPWindow.j +++ b/AppKit/CPWindow/CPWindow.j @@ -1223,10 +1223,10 @@ CPTexturedBackgroundWindowMask if (_firstResponder === aResponder) return YES; - if(![_firstResponder resignFirstResponder]) + if (![_firstResponder resignFirstResponder]) return NO; - if(!aResponder || ![aResponder acceptsFirstResponder] || ![aResponder becomeFirstResponder]) + if (!aResponder || ![aResponder acceptsFirstResponder] || ![aResponder becomeFirstResponder]) { _firstResponder = self; @@ -2155,7 +2155,7 @@ CPTexturedBackgroundWindowMask aSheet._isSheet = YES; aSheet._parentView = self; - var originx = frame.origin.x + FLOOR((frame.size.width - sheetFrame.size.width)/2), + var originx = frame.origin.x + FLOOR((frame.size.width - sheetFrame.size.width) / 2), originy = frame.origin.y + [[self contentView] frame].origin.y, startFrame = CGRectMake(originx, originy, sheetFrame.size.width, 0), endFrame = CGRectMake(originx, originy, sheetFrame.size.width, sheetFrame.size.height); @@ -2314,7 +2314,7 @@ CPTexturedBackgroundWindowMask // Apple's documentation is inconsistent with their behavior here. According to the docs // an event going of the responder chain is passed to the input system as a last resort. - // However, the only methods I could get Cocoa to call automatically are + // However, the only methods I could get Cocoa to call automatically are // moveUp: moveDown: moveLeft: moveRight: pageUp: pageDown: and complete: [self _processKeyboardUIKey:anEvent]; } @@ -2366,7 +2366,7 @@ CPTexturedBackgroundWindowMask [self _appendSubviewsOf:_contentView toArray:subviews]; - for (var i = 0, count = [subviews count]; i