mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
capp_lint will not flag CPRectEdge, more linking
This commit is contained in:
+1
-1
@@ -474,7 +474,7 @@ var bottomHeight = 71;
|
||||
|
||||
offsetX = panelSize.width - inset.right;
|
||||
|
||||
switch([_window styleMask])
|
||||
switch ([_window styleMask])
|
||||
{
|
||||
case _CPModalWindowMask:
|
||||
buttonMarginY = [_themeView currentValueForThemeAttribute:@"modal-window-button-margin-y"];
|
||||
|
||||
@@ -325,7 +325,7 @@ ACTUAL_FRAME_RATE = 0;
|
||||
// currently used function to determine time
|
||||
// 1:1 conversion to js from webkit source files
|
||||
// UnitBezier.h, WebCore_animation_AnimationBase.cpp
|
||||
var CubicBezierAtTime = function CubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration)
|
||||
var CubicBezierAtTime = function(t, p1x, p1y, p2x, p2y, duration)
|
||||
{
|
||||
var ax = 0,
|
||||
bx = 0,
|
||||
|
||||
@@ -342,10 +342,10 @@ var CPSharedDocumentController = nil;
|
||||
- (void)closeAllDocumentsWithDelegate:(id)aDelegate didCloseAllSelector:(SEL)didCloseSelector contextInfo:(Object)info
|
||||
{
|
||||
var context = {
|
||||
delegate: aDelegate,
|
||||
selector: didCloseSelector,
|
||||
context: info
|
||||
};
|
||||
delegate: aDelegate,
|
||||
selector: didCloseSelector,
|
||||
context: info
|
||||
};
|
||||
|
||||
[self _closeDocumentsStartingWith:nil shouldClose:YES context:context];
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
[_stateView setHidden:NO];
|
||||
//[_stateView setImage:_CPMenuItemDefaultStateImages[[_menuItem state]] || nil];
|
||||
|
||||
switch([_menuItem state])
|
||||
switch ([_menuItem state])
|
||||
{
|
||||
case CPOnState:
|
||||
[_stateView setImage:[self valueForThemeAttribute:@"menu-item-default-on-state-image"]];
|
||||
@@ -268,7 +268,7 @@
|
||||
{
|
||||
if (shouldHighlight)
|
||||
{
|
||||
switch([_menuItem state])
|
||||
switch ([_menuItem state])
|
||||
{
|
||||
case CPOnState:
|
||||
[_stateView setImage:[self valueForThemeAttribute:@"menu-item-default-on-state-highlighted-image"]];
|
||||
@@ -288,7 +288,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
switch([_menuItem state])
|
||||
switch ([_menuItem state])
|
||||
{
|
||||
case CPOnState:
|
||||
[_stateView setImage:[self valueForThemeAttribute:@"menu-item-default-on-state-image"]];
|
||||
|
||||
@@ -47,9 +47,9 @@
|
||||
var options = { directoryURL: [self directoryURL],
|
||||
canChooseFiles: [self canChooseFiles],
|
||||
canChooseDirectories: [self canChooseDirectories],
|
||||
allowsMultipleSelection: [self allowsMultipleSelection] };
|
||||
allowsMultipleSelection: [self allowsMultipleSelection] },
|
||||
|
||||
var result = window.cpOpenPanel(options);
|
||||
result = window.cpOpenPanel(options);
|
||||
|
||||
_URLs = result.URLs;
|
||||
|
||||
|
||||
@@ -788,7 +788,7 @@ var _CPWindowViewCornerResizeRectWidth = 10,
|
||||
|
||||
[_sheetShadowView setBackgroundColor:[self valueForThemeAttribute:@"attached-sheet-shadow-color"]];
|
||||
|
||||
if(_resizeIndicator)
|
||||
if (_resizeIndicator)
|
||||
{
|
||||
var size = [self valueForThemeAttribute:@"size-indicator"],
|
||||
boundsSize = [self frame].size;
|
||||
|
||||
@@ -587,7 +587,7 @@ var ListColumnIdentifier = @"1";
|
||||
case CPCarriageReturnCharacter:
|
||||
if ([self isVisible])
|
||||
{
|
||||
[self closeListAfterItemClick];
|
||||
[self closeListAfterItemClick];
|
||||
return YES;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -181,7 +181,7 @@ class LintChecker(object):
|
||||
METHOD_RE = ur'[-+]\s*\([a-zA-Z_$]\w*\)\s*[a-zA-Z_$]\w*'
|
||||
FUNCTION_RE = re.compile(ur'\s*function\s*(?P<name>[a-zA-Z_$]\w*)?\(.*\)\s*\{?')
|
||||
RE_RE = re.compile(ur'(?<!\\)/.*?[^\\]/[gims]*')
|
||||
DEPRECATED_CP_RE = re.compile(ur'\b(CP(?:Point|Rect|Size))')
|
||||
DEPRECATED_CP_RE = re.compile(ur'\b(CP(?:Point|Rect(?!Edge)|Size))')
|
||||
EMPTY_STRING_LITERAL_FUNCTION = lambda match: match.group(1) + (len(match.group(2)) * ' ') + match.group(1)
|
||||
EMPTY_SELF_STRING_LITERAL_FUNCTION = lambda self, match: match.group(1) + (len(match.group(2)) * ' ') + match.group(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user