t5/core/zone
Provides a default handler for events related to zones. A zone is any kind of
client-side element that can be updated; a zone will normally have a unique id.
Typically, a client-side zone element is rendered by, and corresponds to, a server-side
core/Zone component; however, certain other components (such as core/ProgressiveDisplay) may
also be treated as zones.
Most often, a zone is any element with attribute data-container-type=zone
and corresponds
to a core/Zone server-side component.
define ["t5/core/dom", "t5/core/events", "t5/core/ajax", "t5/core/console", "t5/core/forms", "underscore"],
(dom, events, ajax, console, forms, _) ->
unless (typeof ajax) == "function"
console.error "ajax variable is not a function, but instead it is " + JSON.stringify(ajax)
console.error ajax
throw new Error "ajax variable is not a function"