Skip to content
Snippets Groups Projects
Commit d933f97c authored by netpro2k's avatar netpro2k
Browse files

Cleanup naming in super-networked-interactable

parent 886d2616
No related branches found
No related tags found
No related merge requests found
......@@ -24,17 +24,17 @@ AFRAME.registerComponent("super-networked-interactable", {
}
});
this.grabStartListener = this._onGrabStart.bind(this);
this.ownershipLostListener = this._onOwnershipLost.bind(this);
this.el.addEventListener("grab-start", this.grabStartListener);
this.el.addEventListener("ownership-lost", this.ownershipLostListener);
this._onGrabStart = this._onGrabStart.bind(this);
this._onOwnershipLost = this._onOwnershipLost.bind(this);
this.el.addEventListener("grab-start", this._onGrabStart);
this.el.addEventListener("ownership-lost", this._onOwnershipLost);
this.system.addComponent(this);
},
remove: function() {
this.counter.deregister(this.el);
this.el.removeEventListener("grab-start", this.grabStartListener);
this.el.removeEventListener("ownership-lost", this.ownershipLostListener);
this.el.removeEventListener("grab-start", this._onGrabStart);
this.el.removeEventListener("ownership-lost", this._onOwnershipLost);
this.system.removeComponent(this);
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment