Skip to content

Conversation

beeglebug
Copy link
Contributor

I noticed there was some inconsistency between the various Geom classes clone methods.

I added a clone function to both the Line and Polygon classes, then I made sure all the function signatures and argument checks were the same.

I also tidied up the Polygon class slightly by using the setter logic in the constructor instead of duplicating code.

@beeglebug beeglebug changed the title Feature/clone consistency Improved consistency of clone methods on geometry classes Aug 21, 2014
photonstorm added a commit that referenced this pull request Aug 28, 2014
Improved consistency of clone methods on geometry classes
@photonstorm photonstorm merged commit e8ca3a8 into phaserjs:dev Aug 28, 2014
@photonstorm
Copy link
Collaborator

Nice! Merged :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants