Describe the bug
As documented, rebind applies the specified options to IM and redraws. However, certain options are not applied during the rebind. Examples of this include wrapClass, wrapCss, etc.
To Reproduce
Steps to reproduce the behavior:
- Go to jsFiddle
- Click on
Rebind
Expected behavior
The class assigned to IM wrapper should change from wrapper to wrapper2. Note that for certain options, this could mean having to replace existing configuration (e.g. remove previous wrapper class and add current one).
Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
The current code paths for initialization and rebind are separate, however much of the functionality required is identical. Likely makes sense to refactor this (and several other areas in the code) to re-use logic as part of the broader rewrite/refactor plan.
Describe the bug
As documented,
rebindapplies the specified options to IM and redraws. However, certain options are not applied during the rebind. Examples of this include wrapClass, wrapCss, etc.To Reproduce
Steps to reproduce the behavior:
RebindExpected behavior
The class assigned to IM wrapper should change from
wrappertowrapper2. Note that for certain options, this could mean having to replace existing configuration (e.g. remove previous wrapper class and add current one).Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
The current code paths for initialization and rebind are separate, however much of the functionality required is identical. Likely makes sense to refactor this (and several other areas in the code) to re-use logic as part of the broader rewrite/refactor plan.