Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

Refactor JSQMessageBubbleImageFactory to allow custom images #535

Merged
merged 2 commits into from
Oct 10, 2014
Merged

Refactor JSQMessageBubbleImageFactory to allow custom images #535

merged 2 commits into from
Oct 10, 2014

Conversation

walsh2000
Copy link

@jessesquires

Implemented the refactor using your feedback, and even added two unit tests to exercise the custom image flow.

I wasn't sure if you wanted the -[init] to appear in the header, but since that will be how 90% of everyone uses the factory, I decided to add it.

Raymond Walsh added 2 commits October 7, 2014 09:27
The factory is now instantiated, rather than used as a set of static methods.
The default init function creates a factory which behaves exactly like the previous version.
The two-parameter init function takes a custom image and user-defined strechable regions.

Two new unit tests cover the custom image constructor
@jessesquires
Copy link
Owner

Thanks @walsh2000 ! At a glance looks great, I'll have more feedback later today/tonight. 👍 Nice work.

@jessesquires
Copy link
Owner

Thanks again @walsh2000 - going to go ahead and merge and make some changes myself in the interest of time as I work on this tonight. 👍

jessesquires added a commit that referenced this pull request Oct 10, 2014
Refactor JSQMessageBubbleImageFactory to allow custom images
@jessesquires jessesquires merged commit a03344b into jessesquires:develop Oct 10, 2014
jessesquires added a commit that referenced this pull request Oct 10, 2014
@walsh2000 walsh2000 deleted the develop branch October 13, 2014 18:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants