Permalink
Browse files

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

  • Loading branch information...
1 parent 93cc970 commit 029e45d02784379501f3f3c45c10186dcd43281f @aparajita aparajita committed Apr 4, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 AppKit/CPWindow/CPWindow.j
  2. +1 −1 AppKit/_CPImageAndTextView.j
@@ -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)

0 comments on commit 029e45d

Please sign in to comment.