mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-02 19:22:58 +00:00
Use === when possible, made it clearer where the ternary operator ends
This commit is contained in:
1 parent
93cc97002a
commit
029e45d027
2 files changed
+2
-2
No files matched your search
@@ -2020,7 +2020,7 @@ CPTexturedBackgroundWindowMask
|
||||
*/
|
||||
- (BOOL)isMainWindow
|
||||
{
|
||||
return [CPApp mainWindow] == self;
|
||||
return [CPApp mainWindow] === self;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
@@ -462,7 +462,7 @@ var _CPimageAndTextViewFrameSizeChangedFlag = 1 << 0,
|
||||
|
||||
if (_flags & _CPImageAndTextViewFontChangedFlag)
|
||||
{
|
||||
var fontStyle = [_font ? _font : [CPFont systemFontOfSize:12.0] cssString];
|
||||
var fontStyle = [(_font ? _font : [CPFont systemFontOfSize:12.0]) cssString];
|
||||
textStyle.font = fontStyle;
|
||||
|
||||
if (shadowStyle)
|
||||
|
||||
Reference in new issue
Block a user