question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I have several cocoens into tabs or accordion structure. The cocoens that are “collapsed” are broken.

My idea is to call a destroy method and the recreate.

How can I do it manually? I mean revert this

document.querySelectorAll('.cocoen').forEach(function(element){
  new Cocoen(element);
});

To execute it again.

Thank you!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
koenoecommented, Mar 27, 2018

I need to see the issue myself, before I can think of a proper solution. Will take a look it at, but I’m quite busy at the moment. Thanks for reporting guys!

1reaction
mikhail-karancommented, Mar 27, 2018

The solution I have for now is just making all the div’s with cocoen sliders visible (not display:none) upon load. Run the

document.querySelectorAll('.cocoen').forEach(function(element){
  new Cocoen(element);
});

and then hide them. After that it works fine and yes there is a tiny blip upon load where everything is seen but it’s really fast and so far thats the best I can come up with.

@koenoe if you want to try to work on a solution together let me know, we do can a skype call or something.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring core. Default @Bean destroy method - Stack Overflow
This 'destroy method inference' is currently limited to detecting only public, no-arg methods named 'close' or 'shutdown'. In other words, if ...
Read more >
Spring init-method and destroy-method example - Mkyong.com
In Spring, you can use init-method and destroy-method as attribute in bean configuration file for bean to perform certain actions upon ...
Read more >
What is the thread destroy() method in java? - Educative.io
The destroy() method is used to stop the execution of thread groups and subgroups after the completion of the run() method, which executes...
Read more >
Invoke spring bean init and destroy methods? - Java2Novice
You can define initialization and destroy methods with in the spring bean. You can configure it using init-method, and destroy-method in the xml...
Read more >
destroy() method in Tkinter - Python - Tutorialspoint
The destroy() method in Tkinter destroys a widget. It is useful in controlling the behavior of various widgets which depend on each other....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found