         return this
     active: ->
         return active
+    log: (args...) ->
+        ctLog(args...)
+    dir: (args...) ->
+        ctDir(args...)
 
 
 

        # Use $ even if jQuery is in no-conflict mode
        $ = window.jQuery

        # Apply the ID from settings to the template HTML and CSS.
        template = template.replace(/__ID__/g, settings.widget_id)
        renderWidget()

    # Defaults to including a timestamp for extra (excessive?) uniqueness
    widget_id       : "CoffeeTable-#{ (new Date()).getTime() }"

    # Alias log and dir for convenience.
    alias_log       : true
    alias_dir       : true
    
    # Adopt console.log and console.dir if they are not available in the
    # browser. This is useful in browsers like IE.
    adopt_log       : true
    adopt_dir       : true

# Keypress codes, for convenience.
keycode =
