hoppergee

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

better write your updating here
https://gorails.com/forum/s...

simplemde = null

cleanupSimpleMDE = ->
if simplemde?
simplemde.toTextArea()
simplemde = null

$(window).on 'popstate', cleanupSimpleMDE
$(document).on 'turbolinks:before-visit', cleanupSimpleMDE

$(document).on "turbolinks:load", ->
simplemde = new SimpleMDE()