From e57abcd308db8180b696c323ebd2095851dd472d Mon Sep 17 00:00:00 2001
From: Gregory Cornelius <gcorne@gmail.com>
Date: Fri, 28 Feb 2014 21:22:31 -0600
Subject: [PATCH 1/3] Add braces to if statements in accordance with the
styleguide
---
src/wp-includes/js/media-views.js | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git src/wp-includes/js/media-views.js src/wp-includes/js/media-views.js
index e3ce54e..3ace225 100644
|
|
|
|
| 1947 | 1947 | text: l10n.cancelPlaylistTitle, |
| 1948 | 1948 | priority: 20, |
| 1949 | 1949 | click: function() { |
| 1950 | | if ( previous ) |
| | 1950 | if ( previous ) { |
| 1951 | 1951 | frame.setState( previous ); |
| 1952 | | else |
| | 1952 | } else { |
| 1953 | 1953 | frame.close(); |
| | 1954 | } |
| 1954 | 1955 | } |
| 1955 | 1956 | }, |
| 1956 | 1957 | separateCancel: new media.View({ |
| … |
… |
|
| 1970 | 1971 | text: l10n.cancelVideoPlaylistTitle, |
| 1971 | 1972 | priority: 20, |
| 1972 | 1973 | click: function() { |
| 1973 | | if ( previous ) |
| | 1974 | if ( previous ) { |
| 1974 | 1975 | frame.setState( previous ); |
| 1975 | | else |
| | 1976 | } else { |
| 1976 | 1977 | frame.close(); |
| | 1978 | } |
| 1977 | 1979 | } |
| 1978 | 1980 | }, |
| 1979 | 1981 | separateCancel: new media.View({ |