qq99 / echoplexus

Socket.io powered chat, JavaScript REPL, whiteboard, and WebRTC calls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix up the module_active? code

qq99 opened this issue · comments

Right now it's a huge hack, want to slap my past self

This doesn't function properly:

window.events.on "sectionActive:#{@module.section}", =>
return if !@$el.is(":visible")
if !@editorsInitialized
@refreshIframe()
@initializeEditors()
@editorsInitialized = true

  1. Go to /
  2. Go to code
  3. Go to channel /foo
  4. Code panel isn't alive due to the above's deficiencies

Anything that fires / listens to that event there is terrible code!!! 💢