Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alternative entry point #33

Open
flying-sheep opened this issue Nov 30, 2014 · 0 comments
Open

alternative entry point #33

flying-sheep opened this issue Nov 30, 2014 · 0 comments

Comments

@flying-sheep
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant