magr0s / vue-scrollmagic

Vue.js plugin
MIT License
72 stars 24 forks source link

destroy method #10

Closed regenrek closed 4 years ago

regenrek commented 4 years ago

Hi,

if I destroy the controller in my destroyed() method, there doesn't seem to be a possibility to reinit the scrollmagic instance.

        destroy (resetScenes = false) {
          return this.controller_.destroy(resetScenes)
        },
magr0s commented 4 years ago

Hi.

Yes, according to the ScrollMagic documentation, this method destroys everything. So use it with caution.

This method will be advantageous for temporary controllers.