Formatting: add semi-colons to CPTokenField

This commit is contained in:
daniel committed 2018-04-04 15:10:17 -07:00
1 parent be6cb266de
commit c1fe28124f
1 file changed
+2 -2
+2 -2
View File
@@ -549,7 +549,7 @@ CPTokenFieldDeleteButtonType = 1;
CPTokenFieldCachedSelectStartFunction = nil;
CPTokenFieldCachedDragFunction = nil;
document.body.ondrag = CPTokenFieldCachedDragFunction
document.body.ondrag = CPTokenFieldCachedDragFunction;
document.body.onselectstart = CPTokenFieldCachedSelectStartFunction
}
@@ -1247,7 +1247,7 @@ CPTokenFieldDeleteButtonType = 1;
var scrollToToken = _shouldScrollTo;
if (scrollToToken === CPScrollDestinationLeft)
scrollToToken = tokens[_selectedRange.location]
scrollToToken = tokens[_selectedRange.location];
else if (scrollToToken === CPScrollDestinationRight)
scrollToToken = tokens[MAX(0, CPMaxRange(_selectedRange) - 1)];
[self _scrollTokenViewToVisible:scrollToToken];