Skip to content

Explicit registration over window pollution. #1

@jeffijoe

Description

@jeffijoe

I think it would be better to explicitly register your views as "components", like so:

class GoogleMapView extends View {

}

// Register here - first parameter would be the element name, second is the View class.
Marionette.ViewTag.registerComponent('google-map', GoogleMapView);

Ultimately I'd like to get rid of the cp- prefix.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions