 
 class LevelCreator
 
+  EDIT_DEBOUNCE_TIME : 1000
+
   plugins : []
   stack : null
   canvas : null

    @$form = $("#editor-container form")
    @$saveCodeButton = @$form.find("[type=submit]")

    @editor.on "change", => @updatePreview()

    @$form.submit (event) =>


      ).done =>
        @prepareHeadlessRendering()


  debouncedUpdatePreview : ->

    @debouncedUpdatePreview = _.debounce(@updatePreview, @EDIT_DEBOUNCE_TIME)    


  updatePreview : ->

