diff --git a/AppKit/CPApplication.j b/AppKit/CPApplication.j index f20664030..100912937 100644 --- a/AppKit/CPApplication.j +++ b/AppKit/CPApplication.j @@ -216,7 +216,7 @@ var CPApplicationDelegate_applicationShouldTerminate_ = 1 << 0, } if ([_delegate respondsToSelector:@selector(applicationShouldTerminate:)]) - _implementedDelegateMethods |= CPApplicationDelegate_applicationShouldTerminate_ + _implementedDelegateMethods |= CPApplicationDelegate_applicationShouldTerminate_; if ([_delegate respondsToSelector:@selector(applicationShouldTerminateMessage:)]) _implementedDelegateMethods |= CPApplicationDelegate_applicationShouldTerminateMessage_ diff --git a/AppKit/CPArrayController.j b/AppKit/CPArrayController.j index 67e2f681e..b26c0ced8 100644 --- a/AppKit/CPArrayController.j +++ b/AppKit/CPArrayController.j @@ -563,7 +563,7 @@ */ - (BOOL)setSelectionIndexes:(CPIndexSet)indexes { - [self _selectionWillChange] + [self _selectionWillChange]; var r = [self __setSelectionIndexes:indexes avoidEmpty:NO]; [self _selectionDidChange]; return r; diff --git a/AppKit/CPDatePicker/_CPDatePickerClock.j b/AppKit/CPDatePicker/_CPDatePickerClock.j index 1dc603934..c18c5e66b 100644 --- a/AppKit/CPDatePicker/_CPDatePickerClock.j +++ b/AppKit/CPDatePicker/_CPDatePickerClock.j @@ -142,7 +142,7 @@ var RADIANS = Math.PI / 180; if ([_datePicker _isAmericanFormat]) { if (dateValue.getHours() > 11) - [_PMAMTextField setStringValue:@"PM"] + [_PMAMTextField setStringValue:@"PM"]; else [_PMAMTextField setStringValue:@"AM"]; diff --git a/AppKit/CPKeyValueBinding.j b/AppKit/CPKeyValueBinding.j index d524590d4..05a9fd585 100644 --- a/AppKit/CPKeyValueBinding.j +++ b/AppKit/CPKeyValueBinding.j @@ -857,7 +857,7 @@ var CPBindingOperationAnd = 0, - (id)initWithName:(CPString)aName { if (self = [super init]) - _name = aName + _name = aName; return self; } diff --git a/AppKit/CoreGraphics/CGContextCanvas.j b/AppKit/CoreGraphics/CGContextCanvas.j index 628afd27e..3c2115dc4 100644 --- a/AppKit/CoreGraphics/CGContextCanvas.j +++ b/AppKit/CoreGraphics/CGContextCanvas.j @@ -557,14 +557,14 @@ CGContextConcatCTM = function(aContext, anAffineTransform) b = VT.b; c = VT.c; d = VT.d; - scale_rotate(a, b, c, d) + scale_rotate(a, b, c, d); S.a *= sx; S.d *= sy; a = U.a; b = U.b; c = U.c; d = U.d; - rotate_scale(a, b, c, d) + rotate_scale(a, b, c, d); sx = S.a * sx; sy = S.d * sy; } diff --git a/AppKit/CoreGraphics/CGContextVML.j b/AppKit/CoreGraphics/CGContextVML.j index d8431a857..8bb35f649 100644 --- a/AppKit/CoreGraphics/CGContextVML.j +++ b/AppKit/CoreGraphics/CGContextVML.j @@ -242,7 +242,7 @@ function CGContextDrawPath(aContext, aMode) vml.push("\">"); if (gState.gradient) - vml.push(gState.gradient) + vml.push(gState.gradient); else if (fill) { diff --git a/AppKit/CoreGraphics/CGPath.j b/AppKit/CoreGraphics/CGPath.j index b7cea5164..b01d92dfc 100644 --- a/AppKit/CoreGraphics/CGPath.j +++ b/AppKit/CoreGraphics/CGPath.j @@ -132,9 +132,6 @@ function CGPathAddArc(aPath, aTransform, x, y, aRadius, aStartAngle, anEndAngle, } else { - var arcStartX = x + aRadius * COS(aStartAngle), - arcStartY = y + aRadius * SIN(aStartAngle); - aPath.start = CGPointMake(arcStartX, arcStartY); } @@ -274,7 +271,7 @@ function CGPathAddQuadCurveToPoint(aPath, aTransform, cpx, cpy, x, y) end = CGPointApplyAffineTransform(end, aTransform); } - aPath.elements[aPath.count++] = { type:kCGPathElementAddQuadCurveToPoint, cpx:cp.x, cpy:cp.y, x:end.x, y:end.y } + aPath.elements[aPath.count++] = { type:kCGPathElementAddQuadCurveToPoint, cpx:cp.x, cpy:cp.y, x:end.x, y:end.y }; aPath.current = end; } diff --git a/AppKit/_CPPopoverWindow.j b/AppKit/_CPPopoverWindow.j index 055611e98..159b26a6c 100644 --- a/AppKit/_CPPopoverWindow.j +++ b/AppKit/_CPPopoverWindow.j @@ -574,7 +574,7 @@ var _CPPopoverWindow_shouldClose_ = 1 << 4, _isOpening = NO; [_delegate _popoverWindowDidShow]; - } + }; #if PLATFORM(DOM) _DOMElement.addEventListener(CPBrowserStyleProperty('transitionend'), _transitionCompleteFunction, YES); diff --git a/AppKit/_CPToolTip.j b/AppKit/_CPToolTip.j index 296293d02..83457ad3e 100644 --- a/AppKit/_CPToolTip.j +++ b/AppKit/_CPToolTip.j @@ -181,7 +181,7 @@ var _CPToolTipHeight = 24.0, textFrameSize.height += 4; _content = [CPTextField labelWithTitle:aString]; - [_content setFont:[CPFont systemFontOfSize:_CPToolTipFontSize]] + [_content setFont:[CPFont systemFontOfSize:_CPToolTipFontSize]]; [_content setLineBreakMode:CPLineBreakByCharWrapping]; [_content setAutoresizingMask:CPViewWidthSizable | CPViewHeightSizable]; [_content setFrameOrigin:CGPointMake(0.0, 0.0)];