Rename ripple create method
parent
162fc38bde
commit
b583756a4e
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue