Skip to content

Scope *.inc.js files to prevent global pollution #592

Closed
@tj

Description

@tj

Just a thought, but it would be cool to expose the "global"s of include files wrapped in a closure so you don't have to chuck everything on window for bindings to work.

In .go files I guess this would maybe look something like js.Binding.Call("hello") scoped to the closure instead of polluting global.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions