-#requirejs ['leaflet'], (L) ->
-#    # Allow calling original getBounds when needed.
-#    # (leaflet.activearea overrides getBounds)
-#    L.Map.prototype._originalGetBounds = L.Map.prototype.getBounds
-#
+# TODO: Rewrite this to work with r.js
 #if appSettings.sentry_url
 #    config = {}
 #    if appSettings.sentry_disable

    sm,
    widgets,
    BaseControl,
    BaseRouter
) ->

    DEBUG_STATE = appSettings.debug_state
    VERIFY_INVARIANTS = appSettings.verify_invariants

    'cs!app/base',
    'cs!app/widgets',
    'cs!app/control',
    'cs!app/router',
    'leaflet'
],
(
    Models,
