Use === when possible, made it clearer where the ternary operator ends

This commit is contained in:
Aparajita Fishman committed 2012-04-03 17:17:26 -07:00
1 parent 93cc97002a
commit 029e45d027
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2020,7 +2020,7 @@ CPTexturedBackgroundWindowMask
*/
- (BOOL)isMainWindow
{
return [CPApp mainWindow] == self;
return [CPApp mainWindow] === self;
}
/*!
+1 -1
View File
@@ -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)