Skip to content

Commit

Permalink
no need for ready event
Browse files Browse the repository at this point in the history
  • Loading branch information
gbisurgi committed May 21, 2024
1 parent 7c7c020 commit d6462ec
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
4 changes: 1 addition & 3 deletions dist/jedi.js
Original file line number Diff line number Diff line change
Expand Up @@ -3030,9 +3030,7 @@ class as extends Xt {
jedi: this,
schema: this.options.schema,
path: this.rootName
}), l(this.options.data) && this.root.setValue(this.options.data, !1), this.options.container && (this.container = this.options.container, this.appendHiddenInput(), this.container.appendChild(this.root.ui.control.container), this.container.classList.add("jedi-ready"), setTimeout(() => {
this.emit("ready");
})), this.bindEventListeners();
}), l(this.options.data) && this.root.setValue(this.options.data, !1), this.options.container && (this.container = this.options.container, this.appendHiddenInput(), this.container.appendChild(this.root.ui.control.container), this.container.classList.add("jedi-ready")), this.bindEventListeners();
}
bindEventListeners() {
this.root && this.root.on("change", () => {
Expand Down
2 changes: 1 addition & 1 deletion dist/jedi.umd.cjs

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions docs/js/jedi.js

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions src/jedi.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ class Jedi extends EventEmitter {
this.appendHiddenInput()
this.container.appendChild(this.root.ui.control.container)
this.container.classList.add('jedi-ready')

setTimeout(() => {
this.emit('ready')
})
}

this.bindEventListeners()
Expand Down

0 comments on commit d6462ec

Please sign in to comment.