jquery.adaptive-backgrounds.js
jquery.adaptive-backgrounds.js copied to clipboard
Respect 'opts.parent' when using 'data-ab-css-background'
The current implementation will ignore opts.parent
option when using the data-ab-css-background
feature. This behaviour is as per design and explicitly stated as such in the documentation.
The proposed enhancement would:
- respect
opts.parent
if it has been set and the parent exists. - set the background colour of the element with a CSS background image only when a) no 'parent' is set or b) if no parent was found.
The implementation would affect the code around lines #L117-L130
Anyone want to chime in on the merits and rulesets?