From 99cd0259fe4cb3b25ea8db22a276f19ab65d0ebd Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 17 Jan 2019 14:57:24 +0000 Subject: [PATCH] Spelling mistake fix. --- CHANGELOG.md | 2 ++ src/physics/impact/{SeperateX.js => SeparateX.js} | 6 +++--- src/physics/impact/{SeperateY.js => SeparateY.js} | 6 +++--- src/physics/impact/Solver.js | 12 ++++++------ 4 files changed, 14 insertions(+), 12 deletions(-) rename src/physics/impact/{SeperateX.js => SeparateX.js} (91%) rename src/physics/impact/{SeperateY.js => SeparateY.js} (94%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3dc0f6cbb..c0345faae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -301,6 +301,8 @@ one set of bindings ever created, which makes things a lot cleaner. * The `loadcomplete` event emitted by the Loader Plugin has been renamed to `postprocess` to be reflect what it's used for. * Game Objects used to emit a `collide` event if they had an Arcade Physics Body with `onCollide` set, that collided with a Tile. This has changed. The event has been renamed to `tilecollide`. You should now listen for this event from the Arcade Physics World itself: `this.physics.world.on('tilecollide')`. The Game Object will not emit the event any more. * Game Objects used to emit a `overlap` event if they had an Arcade Physics Body with `onOverlap` set, that overlapped with a Tile. This has changed. The event has been renamed to `tileoverlap`. You should now listen for this event from the Arcade Physics World itself: `this.physics.world.on('tileoverlap')`. The Game Object will not emit the event any more. +* The function `Phaser.Physics.Impact.SeperateX` has been renamed to `SeparateX` to correct the spelling mistake. +* The function `Phaser.Physics.Impact.SeperateY` has been renamed to `SeparateY` to correct the spelling mistake. ### Examples and TypeScript diff --git a/src/physics/impact/SeperateX.js b/src/physics/impact/SeparateX.js similarity index 91% rename from src/physics/impact/SeperateX.js rename to src/physics/impact/SeparateX.js index c2c01d851..56a5fc5d2 100644 --- a/src/physics/impact/SeperateX.js +++ b/src/physics/impact/SeparateX.js @@ -7,7 +7,7 @@ /** * [description] * - * @function Phaser.Physics.Impact.SeperateX + * @function Phaser.Physics.Impact.SeparateX * @since 3.0.0 * * @param {Phaser.Physics.Impact.World} world - [description] @@ -15,7 +15,7 @@ * @param {Phaser.Physics.Impact.Body} right - [description] * @param {Phaser.Physics.Impact.Body} [weak] - [description] */ -var SeperateX = function (world, left, right, weak) +var SeparateX = function (world, left, right, weak) { var nudge = left.pos.x + left.size.x - right.pos.x; @@ -47,4 +47,4 @@ var SeperateX = function (world, left, right, weak) } }; -module.exports = SeperateX; +module.exports = SeparateX; diff --git a/src/physics/impact/SeperateY.js b/src/physics/impact/SeparateY.js similarity index 94% rename from src/physics/impact/SeperateY.js rename to src/physics/impact/SeparateY.js index 6acbb36b6..0beadd2f5 100644 --- a/src/physics/impact/SeperateY.js +++ b/src/physics/impact/SeparateY.js @@ -7,7 +7,7 @@ /** * [description] * - * @function Phaser.Physics.Impact.SeperateY + * @function Phaser.Physics.Impact.SeparateY * @since 3.0.0 * * @param {Phaser.Physics.Impact.World} world - [description] @@ -15,7 +15,7 @@ * @param {Phaser.Physics.Impact.Body} bottom - [description] * @param {Phaser.Physics.Impact.Body} [weak] - [description] */ -var SeperateY = function (world, top, bottom, weak) +var SeparateY = function (world, top, bottom, weak) { var nudge = (top.pos.y + top.size.y - bottom.pos.y); var nudgeX; @@ -76,4 +76,4 @@ var SeperateY = function (world, top, bottom, weak) } }; -module.exports = SeperateY; +module.exports = SeparateY; diff --git a/src/physics/impact/Solver.js b/src/physics/impact/Solver.js index d737723af..ee9cdf5f6 100644 --- a/src/physics/impact/Solver.js +++ b/src/physics/impact/Solver.js @@ -6,8 +6,8 @@ var COLLIDES = require('./COLLIDES'); var Events = require('./events'); -var SeperateX = require('./SeperateX'); -var SeperateY = require('./SeperateY'); +var SeparateX = require('./SeparateX'); +var SeparateY = require('./SeparateY'); /** * Impact Physics Solver @@ -37,11 +37,11 @@ var Solver = function (world, bodyA, bodyB) { if (bodyA.last.y < bodyB.last.y) { - SeperateY(world, bodyA, bodyB, weak); + SeparateY(world, bodyA, bodyB, weak); } else { - SeperateY(world, bodyB, bodyA, weak); + SeparateY(world, bodyB, bodyA, weak); } bodyA.collideWith(bodyB, 'y'); @@ -53,11 +53,11 @@ var Solver = function (world, bodyA, bodyB) { if (bodyA.last.x < bodyB.last.x) { - SeperateX(world, bodyA, bodyB, weak); + SeparateX(world, bodyA, bodyB, weak); } else { - SeperateX(world, bodyB, bodyA, weak); + SeparateX(world, bodyB, bodyA, weak); } bodyA.collideWith(bodyB, 'x');