Ver código fonte

Revert whitespace changes for multiline ternarys

Dominic Szablewski 10 anos atrás
pai
commit
585da7db91
1 arquivos alterados com 9 adições e 6 exclusões
  1. 9 6
      jsmpg.js

+ 9 - 6
jsmpg.js Ver arquivo

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
 	request.open('GET', url);
290
 	request.open('GET', url);
290
 	request.responseType = 'arraybuffer';
291
 	request.responseType = 'arraybuffer';
456
 jsmpeg.prototype.benchAvgFrameTime = 0;
457
 jsmpeg.prototype.benchAvgFrameTime = 0;
457
 
458
 
458
 jsmpeg.prototype.now = function() {
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
 jsmpeg.prototype.nextFrame = function() {
465
 jsmpeg.prototype.nextFrame = function() {
1035
 	}
1037
 	}
1036
 
1038
 
1037
 	// Decode blocks
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
 	for( var block = 0, mask = 0x20; block < 6; block++ ) {
1044
 	for( var block = 0, mask = 0x20; block < 6; block++ ) {
1042
 		if( (cbp & mask) !== 0 ) {
1045
 		if( (cbp & mask) !== 0 ) {