Skip to content

Commit 18de527

Browse files
authored
Merge pull request phaserjs#5417 from rexrainbow/pipeline-component-typo
Typo
2 parents fc752f8 + cdfee00 commit 18de527

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/components/Pipeline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ var Pipeline = {
267267
* @webglOnly
268268
* @since 3.50.0
269269
*
270-
* @param {string} name - The name of the Post Pipeline to get.
270+
* @param {string|Phaser.Renderer.WebGL.Pipelines.PostFXPipeline} pipeline - The string-based name of the pipeline, or a pipeline class.
271271
*
272272
* @return {Phaser.Renderer.WebGL.Pipelines.PostFXPipeline} The first Post Pipeline matching the name, or undefined if no match.
273273
*/
@@ -279,7 +279,7 @@ var Pipeline = {
279279
{
280280
var instance = pipelines[i];
281281

282-
if ((typeof pipeline === 'string' && instance.name === name) || instance instanceof pipeline)
282+
if ((typeof pipeline === 'string' && instance.name === pipeline) || instance instanceof pipeline)
283283
{
284284
return instance;
285285
}

0 commit comments

Comments
 (0)