Skip to content

alternative entry point #33

Description

@flying-sheep

when using this you have 2 alternatives:

  1. use build/stitches/js/stitches-1.3.5.js, let it do its thing
  2. use src/require.js to load the src/js/module/stitches.js module, but use your own code instead of $(".stitches").each(function () { new Stitches(this) });, which is cumbersome and hard to discover.

i propose that this API is enhanced by the following:

if build/stitches/js/stitches-1.3.5.js finds some global like e.g. window.Stitches = { STUB: true }, then instead of attaching a stitches instace to every *.stitches, it replaces window.Stitches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions