Skip to content

Removing inject _this object. #7

Description

@kalwalt

In various part of the code we can found var _this = this because otherwise the this object is unvailable, because the use of nested functions example in ArToolkitContext in the init function:

var _this = this;

and then after:
function done() {
// dispatch event
_this.dispatchEvent({
type: "initialized",
});
_this.initialized = true;
onCompleted && onCompleted();
}

maybe we can rewrite these functions?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions