Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
thoughtsunificator committed Oct 3, 2021
1 parent 6b367b9 commit 6d9103b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion src/binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class Binding {
this._children = []
this._listeners = []
this._eventListener = eventListener
this._eventListener._binding = this
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Core {
binding._root = node
binding._model = model
for (const name of Object.getOwnPropertyNames(Object.getPrototypeOf(binding.eventListener)).filter(name => name !== "constructor" && typeof binding.eventListener[name] === "function")) {
binding.listen(binding.eventListener.observable, name, data => binding.eventListener[name](data))
binding.listen(binding.eventListener.observable, name, binding.eventListener[name].bind(binding))
}
binding.onCreated()
if (method === Core.METHOD.APPEND_CHILD) {
Expand Down
8 changes: 0 additions & 8 deletions src/event-listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ class EventListener {
return this._observable
}

/**
* @type {Binding}
* @readonly
*/
get binding() {
return this._binding
}

}

export default EventListener

0 comments on commit 6d9103b

Please sign in to comment.