|
@@ -16,7 +16,6 @@ export default class Component {
|
|
|
|
|
|
const dataAttr = this.$el.getAttribute('x-data')
|
|
const dataAttr = this.$el.getAttribute('x-data')
|
|
const dataExpression = dataAttr === '' ? '{}' : dataAttr
|
|
const dataExpression = dataAttr === '' ? '{}' : dataAttr
|
|
- const initExpression = this.$el.getAttribute('x-init')
|
|
|
|
|
|
|
|
let dataExtras = {
|
|
let dataExtras = {
|
|
$el: this.$el,
|
|
$el: this.$el,
|
|
@@ -82,6 +81,8 @@ export default class Component {
|
|
this.showDirectiveLastElement
|
|
this.showDirectiveLastElement
|
|
|
|
|
|
componentForClone || Alpine.onBeforeComponentInitializeds.forEach(callback => callback(this))
|
|
componentForClone || Alpine.onBeforeComponentInitializeds.forEach(callback => callback(this))
|
|
|
|
+
|
|
|
|
+ const initExpression = this.$el.getAttribute('x-init')
|
|
|
|
|
|
var initReturnedCallback
|
|
var initReturnedCallback
|
|
// If x-init is present AND we aren't cloning (skip x-init on clone)
|
|
// If x-init is present AND we aren't cloning (skip x-init on clone)
|