2 ms·
Well, the snippet you posted is a sensible immediate step before any dependency replacement. You replace direct usage with indirection (adapter) that still cal
by hombre_fatal 8y ago
Well, the snippet you posted is a sensible immediate step before any dependency replacement.
You replace direct usage with indirection (adapter) that still calls jQuery, ensure everything still works, then swap out the indirection's implementation (e.g. with native DOM functions), and ensure everything still works.
The pattern specifically just decouples the callsite from implementation.