define ["t5/core/dom", "t5/core/events", "underscore"],
  (dom, events, _) ->

    dom.onDocument events.palette.willChange, (event, memo) ->

      values = _.map memo.selectedOptions, (o) -> o.value

      (dom "event-selection").update JSON.stringify values
      (dom "event-reorder").update memo.reorder.toString()
define ["t5/core/dom", "t5/core/events", "underscore", "t5/core/console"],
  (dom, events, _, console) ->

    dom.body.on events.palette.willChange, (event, memo) ->

      console.info "palette-demo, palette willChange"

      values = _.map memo.selectedOptions, (o) -> o.value

      (dom "event-selection").update JSON.stringify values
      (dom "event-reorder").update memo.reorder.toString()
Adjust code to attach event handler at body, not document level
Adjust code to attach event handler at body, not document level

My working theory is that Prototype and/or Chrome has changed to not propogate custom events
past the body (to the document).
