From e61aebb55d73b9f947518e17943965f686a19d9d Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 4 Apr 2018 15:06:00 -0700 Subject: [PATCH] Formatting: minor formatting changes for CPTableView.j Added missing semi-colon on line 3763. Removed the redundant `var` keyword on line 4910 Removed the second redundant variable `CPTableViewHeaderViewKey` which was declared with the same name and value twice in the same variable block. --- AppKit/CPTableView.j | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index 38a54b04e..989339290 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -3760,7 +3760,7 @@ Your delegate can implement this method to avoid subclassing the tableview to ad { if (!dataViewsForRow) { - dataViewsForRow = {} + dataViewsForRow = {}; _dataViewsForRows[row] = dataViewsForRow; } @@ -4907,7 +4907,7 @@ Your delegate can implement this method to avoid subclassing the tableview to ad row = _retargetedDropRow; if (row === nil) - var row = [self _proposedRowAtPoint:location]; + row = [self _proposedRowAtPoint:location]; return [self _sendDataSourceAcceptDrop:sender row:row dropOperation:operation]; } @@ -6118,7 +6118,6 @@ var CPTableViewDataSourceKey = @"CPTableViewDataSourceKey", CPTableViewGridStyleMaskKey = @"CPTableViewGridStyleMaskKey", CPTableViewUsesAlternatingBackgroundKey = @"CPTableViewUsesAlternatingBackgroundKey", CPTableViewAlternatingRowColorsKey = @"CPTableViewAlternatingRowColorsKey", - CPTableViewHeaderViewKey = @"CPTableViewHeaderViewKey", CPTableViewCornerViewKey = @"CPTableViewCornerViewKey", CPTableViewAutosaveNameKey = @"CPTableViewAutosaveNameKey", CPTableViewArchivedReusableViewsKey = @"CPTableViewArchivedReusableViewsKey";