Improved coding style consistency

Log function defined as an expression
This commit is contained in:
amarcu5
2017-05-29 15:01:04 +01:00
parent c6bc2f5d24
commit d1d99908dd
3 changed files with 5 additions and 6 deletions
Binary file not shown.
+4 -5
View File
@@ -20,16 +20,15 @@ let PIPResource;
/** @define {boolean} */
const COMPILED = false;
function log(/** string */ message) {
!COMPILED && console.log('PIPer: ' + message);
}
const BUTTON_ID = 'PIPButton';
let /** boolean */ buttonAdded = false;
let /** ?PIPResource */ currentResource = null;
const log = function(message) {
!COMPILED && console.log('PiPer: ' + message);
}
const addButton = function(/** Element */ parent) {
const button = document.createElement(currentResource.buttonElementType || 'button');
+1 -1
View File
@@ -10,7 +10,7 @@
<key>CFBundleShortVersionString</key>
<string>0.1.3</string>
<key>CFBundleVersion</key>
<string>23</string>
<string>24</string>
<key>Developer Identifier</key>
<string>BQ6Q24MF9X</string>
<key>URL</key>