• Micheal Mand's avatar
    Allow deeply nested objects to have media · 773f160a
    Micheal Mand authored
    Without this change, we can’t pass something like `product.attributes.color` as the “model”.
    
    This allows us to do some really weird things, like allow only the first child of some object to have media (e.x.: `model === ‘parent.children[0]’`).
    
    This does NOT prevent problems where the model doesn’t exist (you’ll get an error: `TypeError: Cannot read property 'medias_single' of undefined`), but that’s something that the developer should check (make sure you have the right path).
    
    The Typy package has some other neat things it can do, if you’re interested: https://github.com/flexdinesh/typySigned-off-by: 's avatarMicheal Mand <micheal@kmdwebdesigns.com>
    773f160a
Name
Last commit
Last update
..
assets/media Loading commit data...
css Loading commit data...
fonts/vendor Loading commit data...
js Loading commit data...
modules Loading commit data...
svg Loading commit data...
themes Loading commit data...
.htaccess Loading commit data...
favicon.ico Loading commit data...
index.php Loading commit data...
mix-manifest.json Loading commit data...
robots.txt Loading commit data...
web.config Loading commit data...