Skip to content

Commit d78a9d0

Browse files
committed
eslint fixes
1 parent 5816b86 commit d78a9d0

5 files changed

Lines changed: 27 additions & 30 deletions

File tree

src/physics/matter-js/MatterGameObject.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
55
*/
66

7-
var Bodies = require('./lib/factory/Bodies');
8-
var Class = require('../../utils/Class');
97
var Components = require('./components');
108
var GetFastValue = require('../../utils/object/GetFastValue');
119
var Vector2 = require('../../math/Vector2');
@@ -68,7 +66,8 @@ var MatterGameObject = function (world, gameObject, options)
6866
];
6967

7068
// First let's inject all of the components into the Game Object
71-
mixins.forEach(function (mixin) {
69+
mixins.forEach(function (mixin)
70+
{
7271

7372
for (var key in mixin)
7473
{
@@ -81,9 +80,7 @@ var MatterGameObject = function (world, gameObject, options)
8180
}
8281
else
8382
{
84-
Object.defineProperty(gameObject, key, {
85-
value: mixin[key]
86-
});
83+
Object.defineProperty(gameObject, key, {value: mixin[key]});
8784
}
8885
}
8986

src/sound/BaseSound.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -547,12 +547,12 @@ var BaseSound = new Class({
547547
*
548548
* @return {Phaser.Sound.BaseSound} This Sound.
549549
*/
550-
setRate: function (value)
551-
{
550+
setRate: function (value)
551+
{
552552
this.rate = value;
553553

554554
return this;
555-
},
555+
},
556556

557557
/**
558558
* Rate at which this Sound will be played.
@@ -594,12 +594,12 @@ var BaseSound = new Class({
594594
*
595595
* @return {Phaser.Sound.BaseSound} This Sound.
596596
*/
597-
setDetune: function (value)
598-
{
597+
setDetune: function (value)
598+
{
599599
this.detune = value;
600600

601601
return this;
602-
},
602+
},
603603

604604
/**
605605
* @event Phaser.Sound.BaseSound#detune

src/sound/BaseSoundManager.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -549,12 +549,12 @@ var BaseSoundManager = new Class({
549549
*
550550
* @return {Phaser.Sound.BaseSoundManager} This Sound Manager.
551551
*/
552-
setRate: function (value)
553-
{
552+
setRate: function (value)
553+
{
554554
this.rate = value;
555555

556556
return this;
557-
},
557+
},
558558

559559
/**
560560
* Global playback rate at which all the sounds will be played.
@@ -599,12 +599,12 @@ var BaseSoundManager = new Class({
599599
*
600600
* @return {Phaser.Sound.BaseSoundManager} This Sound Manager.
601601
*/
602-
setDetune: function (value)
603-
{
602+
setDetune: function (value)
603+
{
604604
this.detune = value;
605605

606606
return this;
607-
},
607+
},
608608

609609
/**
610610
* @event Phaser.Sound.BaseSoundManager#detune

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,12 +333,12 @@ var HTML5AudioSoundManager = new Class({
333333
*
334334
* @return {Phaser.Sound.HTML5AudioSoundManager} This Sound Manager.
335335
*/
336-
setMute: function (value)
337-
{
336+
setMute: function (value)
337+
{
338338
this.mute = value;
339339

340340
return this;
341-
},
341+
},
342342

343343
/**
344344
* @name Phaser.Sound.HTML5AudioSoundManager#mute
@@ -384,12 +384,12 @@ var HTML5AudioSoundManager = new Class({
384384
*
385385
* @return {Phaser.Sound.HTML5AudioSoundManager} This Sound Manager.
386386
*/
387-
setVolume: function (value)
388-
{
387+
setVolume: function (value)
388+
{
389389
this.volume = value;
390390

391391
return this;
392-
},
392+
},
393393

394394
/**
395395
* @name Phaser.Sound.HTML5AudioSoundManager#volume

src/sound/webaudio/WebAudioSoundManager.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,12 @@ var WebAudioSoundManager = new Class({
225225
*
226226
* @return {Phaser.Sound.WebAudioSoundManager} This Sound Manager.
227227
*/
228-
setMute: function (value)
229-
{
228+
setMute: function (value)
229+
{
230230
this.mute = value;
231231

232232
return this;
233-
},
233+
},
234234

235235
/**
236236
* @name Phaser.Sound.WebAudioSoundManager#mute
@@ -271,12 +271,12 @@ var WebAudioSoundManager = new Class({
271271
*
272272
* @return {Phaser.Sound.WebAudioSoundManager} This Sound Manager.
273273
*/
274-
setVolume: function (value)
275-
{
274+
setVolume: function (value)
275+
{
276276
this.volume = value;
277277

278278
return this;
279-
},
279+
},
280280

281281
/**
282282
* @name Phaser.Sound.WebAudioSoundManager#volume

0 commit comments

Comments
 (0)