Skip to content

Don't pollute the window namespace #85

@kreichgauer

Description

@kreichgauer

I would like to do something like this:
myNamespace.io = io;
delete io;
This doesn't work, because Socket.IO references the global io internally. There are different ways how to solve this. I think the easiest solution would be to put a var io = this.io at the beginning of every file. References to io would then hit the local copy instead of the global io. That's also the way jQuery does it.

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