   ($) ->
     methods = {
       init: (options) ->
+        options = {} unless options
+
         unless options['id']
           if @.attr('id').length > 0
             options['id'] = @.attr 'id'

        @.data 'aced_editor', editor

        delete options['id']
        @.aced_conf options
      ,
      conf: (options) ->
        unless @.data('aced_editor')

        if options['mode']
          editorMode = require("ace/mode/#{options['mode']}").Mode
          editor.getSession().setMode(new editorMode())  
        @
    }  

    $.fn.aced = (method) ->
