Skip to content

Fix [slide] update to 0 bug#7229

Merged
dreamofabear merged 1 commit intoampproject:masterfrom
dreamofabear:carousel-bind-slide-0
Jan 27, 2017
Merged

Fix [slide] update to 0 bug#7229
dreamofabear merged 1 commit intoampproject:masterfrom
dreamofabear:carousel-bind-slide-0

Conversation

@dreamofabear
Copy link
Copy Markdown

Fixes #7225.

mutatedAttributesCallback(mutations) {
const slide = mutations['slide'];
if (slide) {
if (slide !== undefined) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i guess you could also check if this is a number using our dev. util fn

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

We also want to support strings here so I think type#isFiniteNumber wouldn't suffice.

Copy link
Copy Markdown
Author

@dreamofabear dreamofabear left a comment

Choose a reason for hiding this comment

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

Thanks for the super quick review!

@dreamofabear dreamofabear merged commit 63bc93a into ampproject:master Jan 27, 2017
@dreamofabear dreamofabear deleted the carousel-bind-slide-0 branch January 27, 2017 18:04
jridgewell pushed a commit to jridgewell/amphtml that referenced this pull request Jan 31, 2017
torch2424 pushed a commit to torch2424/amphtml that referenced this pull request Feb 14, 2017
mrjoro pushed a commit to mrjoro/amphtml that referenced this pull request Apr 28, 2017
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