theme-scripts
theme-scripts copied to clipboard
.extend() before load()
Hi there,
I'm using Slate, which in turns uses theme-scripts, and I'm trying to extend a section.
Now the problem I'm having is that there're no instances of a given section (in this case "product") when I call extend( 'product' )
. Diving into the theme-sections.js file I could see that the instances are added to the array of instances when load() is called. So I tried calling extend() after calling load(), and in that case it extended it, but onLoad() is not called on the extension (init()
is being called though).
Any ideas on how this should be fixed?