when using this you have 2 alternatives:
- use
build/stitches/js/stitches-1.3.5.js, let it do its thing
- 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.
when using this you have 2 alternatives:
build/stitches/js/stitches-1.3.5.js, let it do its thingsrc/require.jsto load thesrc/js/module/stitches.jsmodule, 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.jsfinds some global like e.g.window.Stitches = { STUB: true }, then instead of attaching a stitches instace to every*.stitches, it replaceswindow.Stitches.