Przeglądaj źródła

Revert whitespace changes for multiline ternarys

Dominic Szablewski 10 lat temu
rodzic
commit
585da7db91
1 zmienionych plików z 9 dodań i 6 usunięć
  1. 9 6
      jsmpg.js

+ 9 - 6
jsmpg.js Wyświetl plik

@@ -283,8 +283,9 @@ jsmpeg.prototype.load = function( url ) {
283 283
 		}
284 284
 	};
285 285
 
286
-	request.onprogress = this.gl ? this.updateLoaderGL.bind(this)
287
-								 : this.updateLoader2D.bind(this);
286
+	request.onprogress = this.gl
287
+		? this.updateLoaderGL.bind(this)
288
+		: this.updateLoader2D.bind(this);
288 289
 
289 290
 	request.open('GET', url);
290 291
 	request.responseType = 'arraybuffer';
@@ -456,8 +457,9 @@ jsmpeg.prototype.benchDecodeTimes = 0;
456 457
 jsmpeg.prototype.benchAvgFrameTime = 0;
457 458
 
458 459
 jsmpeg.prototype.now = function() {
459
-	return window.performance ? window.performance.now()
460
-							  : Date.now();
460
+	return window.performance
461
+		? window.performance.now()
462
+		: Date.now();
461 463
 };
462 464
 
463 465
 jsmpeg.prototype.nextFrame = function() {
@@ -1035,8 +1037,9 @@ jsmpeg.prototype.decodeMacroblock = function() {
1035 1037
 	}
1036 1038
 
1037 1039
 	// Decode blocks
1038
-	var cbp = ((this.macroblockType & 0x02) !== 0) ? this.readCode(CODE_BLOCK_PATTERN)
1039
-												   : (this.macroblockIntra ? 0x3f : 0);
1040
+	var cbp = ((this.macroblockType & 0x02) !== 0)
1041
+		? this.readCode(CODE_BLOCK_PATTERN)
1042
+		: (this.macroblockIntra ? 0x3f : 0);
1040 1043
 
1041 1044
 	for( var block = 0, mask = 0x20; block < 6; block++ ) {
1042 1045
 		if( (cbp & mask) !== 0 ) {