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

Some premature optimization for amp-slides #1810

Merged
merged 1 commit into from
Feb 6, 2016
Merged

Some premature optimization for amp-slides #1810

merged 1 commit into from
Feb 6, 2016

Conversation

LendsMan
Copy link

@LendsMan LendsMan commented Feb 5, 2016

Added some optimisation if you don't mind and code style is acceptable.

@LendsMan
Copy link
Author

LendsMan commented Feb 5, 2016

Done.

this.prevButton_.style.fontSize = '24px';
this.prevButton_.style.marginTop = '-20px';
this.prevButton_.style.pointerEvents = 'all';
const prevButtonStyle = this.prevButton_.style;
Copy link
Member

Choose a reason for hiding this comment

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

lets go ahead and use:

st.setStyles(this.prevButton_, {
  //styles here...
});

it should already be imported in this file. Thanks!

@erwinmombay
Copy link
Member

@LendsMan would you mind squashing your commits into 1? let me know if you need any help on this!

@jridgewell
Copy link
Contributor

LGTM, thanks!

jridgewell added a commit that referenced this pull request Feb 6, 2016
Some premature optimization for amp-slides
@jridgewell jridgewell merged commit 824c1d9 into ampproject:master Feb 6, 2016
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.

4 participants