@@ -103,7 +103,10 @@ var Wrap = require('../../math/Wrap');
103103 * @param {boolean } [emitOnly=false] - [description]
104104 */
105105var EmitterOp = new Class ( {
106- initialize : function EmitterOp ( config , key , defaultValue , emitOnly )
106+
107+ initialize :
108+
109+ function EmitterOp ( config , key , defaultValue , emitOnly )
107110 {
108111 if ( emitOnly === undefined )
109112 {
@@ -332,18 +335,12 @@ var EmitterOp = new Class({
332335 this . onUpdate = value ;
333336 }
334337 }
335- else if (
336- t === 'object' &&
337- ( this . has ( value , 'random' ) ||
338- this . hasBoth ( value , 'start' , 'end' ) ||
339- this . hasBoth ( value , 'min' , 'max' ) )
340- )
338+ else if ( t === 'object' && ( this . has ( value , 'random' ) || this . hasBoth ( value , 'start' , 'end' ) || this . hasBoth ( value , 'min' , 'max' ) ) )
341339 {
342340 this . start = this . has ( value , 'start' ) ? value . start : value . min ;
343341 this . end = this . has ( value , 'end' ) ? value . end : value . max ;
344342
345- var isRandom =
346- this . hasBoth ( value , 'min' , 'max' ) || this . has ( value , 'random' ) ;
343+ var isRandom = ( this . hasBoth ( value , 'min' , 'max' ) || this . has ( value , 'random' ) ) ;
347344
348345 // A random starting value (using 'min | max' instead of 'start | end' automatically implies a random value)
349346
@@ -382,7 +379,6 @@ var EmitterOp = new Class({
382379
383380 // x: { start: 100, end: 400, [ ease: 'Linear' ] }
384381
385-
386382 var easeType = this . has ( value , 'ease' ) ? value . ease : 'Linear' ;
387383
388384 this . ease = GetEaseFunction ( easeType ) ;
@@ -398,10 +394,7 @@ var EmitterOp = new Class({
398394 this . onUpdate = this . easeValueUpdate ;
399395 }
400396 }
401- else if (
402- t === 'object' &&
403- this . hasEither ( value , 'onEmit' , 'onUpdate' )
404- )
397+ else if ( t === 'object' && this . hasEither ( value , 'onEmit' , 'onUpdate' ) )
405398 {
406399 // Custom onEmit and onUpdate callbacks
407400
0 commit comments