Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organize turtle avatars as skin settings #20513

Merged
merged 5 commits into from
Feb 9, 2018
Merged

Conversation

joshlory
Copy link
Contributor

@joshlory joshlory commented Feb 9, 2018

No description provided.

@joshlory joshlory requested a review from Hamms February 9, 2018 00:31
width: 73,
height: 100,
numHeadings: 36,
image: new Image(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a specific reason this declaration was moved here rather than staying in turtle? All the others make sense, but I don't love the idea of creating a new Image in a config file

@@ -727,18 +711,9 @@ Artist.prototype.drawImages = function () {
*/
Artist.prototype.loadTurtle = function (initializing = true) {
const onloadCallback = initializing ? this.display : this.drawTurtle;
this.avatarImage.onload = _.bind(onloadCallback, this);
this.avatar.image.onload = _.bind(onloadCallback, this);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you'll need to declare the new Image() somewhere. I vote here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, of course 🤦

@joshlory joshlory merged commit fe1d538 into staging Feb 9, 2018
@joshlory joshlory deleted the organize-turtle-avatars branch February 9, 2018 22:40
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.

None yet

2 participants