Rename ripple create method

pull/5756/head
tugcekucukoglu 2024-05-15 09:38:43 +03:00
parent 162fc38bde
commit b583756a4e
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ const Ripple = BaseRipple.extend('ripple', {
watch: { watch: {
'config.ripple'(newValue) { 'config.ripple'(newValue) {
if (newValue) { if (newValue) {
this.create(this.$host); this.createRipple(this.$host);
this.bindEvents(this.$host); this.bindEvents(this.$host);
this.$host.setAttribute('data-pd-ripple', true); this.$host.setAttribute('data-pd-ripple', true);
@ -28,7 +28,7 @@ const Ripple = BaseRipple.extend('ripple', {
unbindEvents(el) { unbindEvents(el) {
el.removeEventListener('mousedown', this.onMouseDown.bind(this)); el.removeEventListener('mousedown', this.onMouseDown.bind(this));
}, },
create(el) { createRipple(el) {
const ink = DomHandler.createElement('span', { const ink = DomHandler.createElement('span', {
role: 'presentation', role: 'presentation',
'aria-hidden': true, 'aria-hidden': true,