Skip to content

button: Convert to vanilla JS#23600

Merged
Johann-S merged 5 commits intov4-without-jqueryfrom
v4-without-jquery-buttons
Sep 1, 2017
Merged

button: Convert to vanilla JS#23600
Johann-S merged 5 commits intov4-without-jqueryfrom
v4-without-jquery-buttons

Conversation

@XhmikosR
Copy link
Copy Markdown
Member

@XhmikosR XhmikosR commented Aug 21, 2017

Tasks:

  • Convert buttons.js
  • Fix tests

@Johann-S
Copy link
Copy Markdown
Member

it seems your tests failed because phantomsJS don't know closest function and the polyfill is in my PR, before finishing this PR we should finish the Alert plugin and the Button plugin will be finish quickly after that 👍

@Johann-S Johann-S mentioned this pull request Aug 23, 2017
45 tasks
@Johann-S
Copy link
Copy Markdown
Member

v4-without-jquery is up to date with v4-dev so you can rebase 👍

@Johann-S Johann-S force-pushed the v4-without-jquery branch 2 times, most recently from 53f5fc0 to 5bb63b4 Compare August 23, 2017 15:09
@XhmikosR XhmikosR force-pushed the v4-without-jquery-buttons branch 2 times, most recently from 42fb3e3 to 666e7a5 Compare August 26, 2017 09:56
Comment thread js/src/dom/selectorEngine.js Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice change 👍 I did the same but without the default value and your change is much better 😄

@Johann-S
Copy link
Copy Markdown
Member

Can you update our button visual test ?

@XhmikosR XhmikosR force-pushed the v4-without-jquery-buttons branch 6 times, most recently from 336def2 to b7e89bc Compare August 26, 2017 11:07
@XhmikosR XhmikosR removed the on-hold label Aug 26, 2017
@XhmikosR XhmikosR changed the title button.js: Convert to vanilla JS (incomplete) button.js: Convert to vanilla JS Aug 26, 2017
@XhmikosR XhmikosR force-pushed the v4-without-jquery-buttons branch from b7e89bc to 1ef0d69 Compare August 26, 2017 11:39
@XhmikosR XhmikosR changed the title button.js: Convert to vanilla JS button: Convert to vanilla JS Aug 26, 2017
@Johann-S Johann-S force-pushed the v4-without-jquery-buttons branch from 88887e8 to 6bf7669 Compare August 26, 2017 16:32
Comment thread js/src/button.js Outdated

EventHandler.on(document,
Event.FOCUS_BLUR_DATA_API, Selector.DATA_TOGGLE_CARROT, (event) => {
const button = SelectorEngine.closest(event.target, Selector.BUTTON)[0]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@Johann-S: this [0] indeed doesn't seem right.

@Johann-S Johann-S force-pushed the v4-without-jquery-buttons branch 2 times, most recently from df0ba44 to b3c494a Compare August 27, 2017 07:16
@Johann-S Johann-S force-pushed the v4-without-jquery-buttons branch from b3c494a to 2f57725 Compare September 1, 2017 09:22
@Johann-S Johann-S merged commit 63a434c into v4-without-jquery Sep 1, 2017
@Johann-S Johann-S deleted the v4-without-jquery-buttons branch September 1, 2017 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants