Problem/Motivation
Currently all functions within off-canvas.es6.js
are private scoped. Some themes, like Bootstrap, already have their own modal JavaScript which do not rely on jQuery UI. Due to the private scope design custom projects do not have the ability to override its default behavior.
Proposed resolution
Rewrite off-canvas.es6.js
to follow a "module pattern", exposing functions publicly, allowing other JavaScript libraries to modify or replace functionality.
API changes
- Exposed previously private methods to public. @see patch Drupal.offCanvas