 
         for event in events
           eventType = event.idx.split('.')
-          if event.idx == idx || ( eventType[0] && eventType[0] == idx.replace('.', '') )
+          if event.idx == idx || (eventType[0] && eventType[0] == idx.replace('.', '') )
                 evt = document.createEvent('HTMLEvents')
                 evt.initEvent(eventType[0], false, true)
                 @sound.dispatchEvent(evt)

        duration = duration || Kona.Sound.defaults.duration

      from = @volume
      delay = duration / Math.abs( from - to )
      self = @
      @play()


  # ----------------------------
  #   SOUND INSTANCES
  # ----------------------------

  # TODO: Figure out how to make this into a class

  sound: (src, options={}) ->
    pid        = 0
