mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
eslint fixes
This commit is contained in:
parent
5816b863fa
commit
d78a9d097f
5 changed files with 27 additions and 30 deletions
|
@ -4,8 +4,6 @@
|
|||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||
*/
|
||||
|
||||
var Bodies = require('./lib/factory/Bodies');
|
||||
var Class = require('../../utils/Class');
|
||||
var Components = require('./components');
|
||||
var GetFastValue = require('../../utils/object/GetFastValue');
|
||||
var Vector2 = require('../../math/Vector2');
|
||||
|
@ -68,7 +66,8 @@ var MatterGameObject = function (world, gameObject, options)
|
|||
];
|
||||
|
||||
// First let's inject all of the components into the Game Object
|
||||
mixins.forEach(function (mixin) {
|
||||
mixins.forEach(function (mixin)
|
||||
{
|
||||
|
||||
for (var key in mixin)
|
||||
{
|
||||
|
@ -81,9 +80,7 @@ var MatterGameObject = function (world, gameObject, options)
|
|||
}
|
||||
else
|
||||
{
|
||||
Object.defineProperty(gameObject, key, {
|
||||
value: mixin[key]
|
||||
});
|
||||
Object.defineProperty(gameObject, key, {value: mixin[key]});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -547,12 +547,12 @@ var BaseSound = new Class({
|
|||
*
|
||||
* @return {Phaser.Sound.BaseSound} This Sound.
|
||||
*/
|
||||
setRate: function (value)
|
||||
{
|
||||
setRate: function (value)
|
||||
{
|
||||
this.rate = value;
|
||||
|
||||
return this;
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* Rate at which this Sound will be played.
|
||||
|
@ -594,12 +594,12 @@ var BaseSound = new Class({
|
|||
*
|
||||
* @return {Phaser.Sound.BaseSound} This Sound.
|
||||
*/
|
||||
setDetune: function (value)
|
||||
{
|
||||
setDetune: function (value)
|
||||
{
|
||||
this.detune = value;
|
||||
|
||||
return this;
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* @event Phaser.Sound.BaseSound#detune
|
||||
|
|
|
@ -549,12 +549,12 @@ var BaseSoundManager = new Class({
|
|||
*
|
||||
* @return {Phaser.Sound.BaseSoundManager} This Sound Manager.
|
||||
*/
|
||||
setRate: function (value)
|
||||
{
|
||||
setRate: function (value)
|
||||
{
|
||||
this.rate = value;
|
||||
|
||||
return this;
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* Global playback rate at which all the sounds will be played.
|
||||
|
@ -599,12 +599,12 @@ var BaseSoundManager = new Class({
|
|||
*
|
||||
* @return {Phaser.Sound.BaseSoundManager} This Sound Manager.
|
||||
*/
|
||||
setDetune: function (value)
|
||||
{
|
||||
setDetune: function (value)
|
||||
{
|
||||
this.detune = value;
|
||||
|
||||
return this;
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* @event Phaser.Sound.BaseSoundManager#detune
|
||||
|
|
|
@ -333,12 +333,12 @@ var HTML5AudioSoundManager = new Class({
|
|||
*
|
||||
* @return {Phaser.Sound.HTML5AudioSoundManager} This Sound Manager.
|
||||
*/
|
||||
setMute: function (value)
|
||||
{
|
||||
setMute: function (value)
|
||||
{
|
||||
this.mute = value;
|
||||
|
||||
return this;
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* @name Phaser.Sound.HTML5AudioSoundManager#mute
|
||||
|
@ -384,12 +384,12 @@ var HTML5AudioSoundManager = new Class({
|
|||
*
|
||||
* @return {Phaser.Sound.HTML5AudioSoundManager} This Sound Manager.
|
||||
*/
|
||||
setVolume: function (value)
|
||||
{
|
||||
setVolume: function (value)
|
||||
{
|
||||
this.volume = value;
|
||||
|
||||
return this;
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* @name Phaser.Sound.HTML5AudioSoundManager#volume
|
||||
|
|
|
@ -225,12 +225,12 @@ var WebAudioSoundManager = new Class({
|
|||
*
|
||||
* @return {Phaser.Sound.WebAudioSoundManager} This Sound Manager.
|
||||
*/
|
||||
setMute: function (value)
|
||||
{
|
||||
setMute: function (value)
|
||||
{
|
||||
this.mute = value;
|
||||
|
||||
return this;
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* @name Phaser.Sound.WebAudioSoundManager#mute
|
||||
|
@ -271,12 +271,12 @@ var WebAudioSoundManager = new Class({
|
|||
*
|
||||
* @return {Phaser.Sound.WebAudioSoundManager} This Sound Manager.
|
||||
*/
|
||||
setVolume: function (value)
|
||||
{
|
||||
setVolume: function (value)
|
||||
{
|
||||
this.volume = value;
|
||||
|
||||
return this;
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* @name Phaser.Sound.WebAudioSoundManager#volume
|
||||
|
|
Loading…
Add table
Reference in a new issue